staging: comedi: comedi_fops: don't export comedi_get_device_file_info()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 19 Dec 2012 22:36:00 +0000 (15:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:25:46 +0000 (14:25 -0800)
This function is now only used in comedi_fops.c and does not need
to be exported.

Make it static and move it to avoid forward declarations.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c
drivers/staging/comedi/comedidev.h

index 3945b5f0e5fa0af966420dff91851c14f8996877..1950f1ea6bb47805a62e1653f8a6e9c22b3c746a 100644 (file)
@@ -90,6 +90,18 @@ static DEFINE_SPINLOCK(comedi_file_info_table_lock);
 static struct comedi_device_file_info
 *comedi_file_info_table[COMEDI_NUM_MINORS];
 
+static struct comedi_device_file_info *
+comedi_get_device_file_info(unsigned minor)
+{
+       struct comedi_device_file_info *info;
+
+       BUG_ON(minor >= COMEDI_NUM_MINORS);
+       spin_lock(&comedi_file_info_table_lock);
+       info = comedi_file_info_table[minor];
+       spin_unlock(&comedi_file_info_table_lock);
+       return info;
+}
+
 struct comedi_device *comedi_dev_from_minor(unsigned minor)
 {
        struct comedi_device_file_info *info;
@@ -2540,15 +2552,3 @@ void comedi_free_subdevice_minor(struct comedi_subdevice *s)
        }
        kfree(info);
 }
-
-struct comedi_device_file_info *comedi_get_device_file_info(unsigned minor)
-{
-       struct comedi_device_file_info *info;
-
-       BUG_ON(minor >= COMEDI_NUM_MINORS);
-       spin_lock(&comedi_file_info_table_lock);
-       info = comedi_file_info_table[minor];
-       spin_unlock(&comedi_file_info_table_lock);
-       return info;
-}
-EXPORT_SYMBOL_GPL(comedi_get_device_file_info);
index fc2c17925381766c7da377fcf49f6c4bc0aaf0b6..3e1fd84f209008cf0ffa2503d99629920014220a 100644 (file)
@@ -280,8 +280,6 @@ enum comedi_minor_bits {
 static const unsigned COMEDI_SUBDEVICE_MINOR_SHIFT = 4;
 static const unsigned COMEDI_SUBDEVICE_MINOR_OFFSET = 1;
 
-struct comedi_device_file_info *comedi_get_device_file_info(unsigned minor);
-
 struct comedi_device *comedi_dev_from_minor(unsigned minor);
 
 int comedi_alloc_subdevices(struct comedi_device *, int);
This page took 0.027864 seconds and 5 git commands to generate.