summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorH Hartley Sweeten2012-12-19 23:36:00 +0100
committerGreg Kroah-Hartman2013-01-07 23:25:46 +0100
commit87b1ad7a80d0a297448893e06f37c775951119d0 (patch)
tree7ff9639c3abf0d2b82e80a7ea7cdbe3b39dc7474 /drivers/staging/comedi/comedi_fops.c
parentstaging: comedi: use comedi_dev_from_minor() (diff)
downloadkernel-qcow2-linux-87b1ad7a80d0a297448893e06f37c775951119d0.tar.gz
kernel-qcow2-linux-87b1ad7a80d0a297448893e06f37c775951119d0.tar.xz
kernel-qcow2-linux-87b1ad7a80d0a297448893e06f37c775951119d0.zip
staging: comedi: comedi_fops: don't export comedi_get_device_file_info()
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>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
-rw-r--r--drivers/staging/comedi/comedi_fops.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/staging/comedi/comedi_fops.c b/drivers/staging/comedi/comedi_fops.c
index 3945b5f0e5fa..1950f1ea6bb4 100644
--- a/drivers/staging/comedi/comedi_fops.c
+++ b/drivers/staging/comedi/comedi_fops.c
@@ -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);