]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: comedi_fops: don't export comedi_get_subdevice_runflags()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 19 Dec 2012 22:43:40 +0000 (15:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jan 2013 22:25:49 +0000 (14:25 -0800)
The subdevice runflags are protected with a spin_lock. Only the comedi
core should be accessing them directly.

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 b67fb0dc7a7bb6e675e2b43c7a5c53b47be2a69e..7d85f57f584bc1baae7587cdcf8ac79cd2ced89c 100644 (file)
@@ -363,7 +363,7 @@ static void comedi_set_subdevice_runflags(struct comedi_subdevice *s,
        spin_unlock_irqrestore(&s->spin_lock, flags);
 }
 
-unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s)
+static unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s)
 {
        unsigned long flags;
        unsigned runflags;
@@ -373,7 +373,6 @@ unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s)
        spin_unlock_irqrestore(&s->spin_lock, flags);
        return runflags;
 }
-EXPORT_SYMBOL(comedi_get_subdevice_runflags);
 
 bool comedi_is_subdevice_running(struct comedi_subdevice *s)
 {
index 791030d2d8b4fb9c3e027f004e6b68c6ba8fece4..5127dc28d6f65b6eccdd0107290f68871fa540ff 100644 (file)
@@ -367,7 +367,6 @@ bool comedi_is_subdevice_running(struct comedi_subdevice *s);
 int comedi_check_chanlist(struct comedi_subdevice *s,
                          int n,
                          unsigned int *chanlist);
-unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s);
 
 /* range stuff */