提交 ade1764f 编写于 作者: H H Hartley Sweeten 提交者: Greg Kroah-Hartman

staging: comedi: comedi_fops: don't export comedi_get_subdevice_runflags()

The subdevice runflags are protected with a spin_lock. Only the comedi
core should be accessing them directly.
Signed-off-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f0124630
...@@ -363,7 +363,7 @@ static void comedi_set_subdevice_runflags(struct comedi_subdevice *s, ...@@ -363,7 +363,7 @@ static void comedi_set_subdevice_runflags(struct comedi_subdevice *s,
spin_unlock_irqrestore(&s->spin_lock, flags); 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 long flags;
unsigned runflags; unsigned runflags;
...@@ -373,7 +373,6 @@ unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s) ...@@ -373,7 +373,6 @@ unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s)
spin_unlock_irqrestore(&s->spin_lock, flags); spin_unlock_irqrestore(&s->spin_lock, flags);
return runflags; return runflags;
} }
EXPORT_SYMBOL(comedi_get_subdevice_runflags);
bool comedi_is_subdevice_running(struct comedi_subdevice *s) bool comedi_is_subdevice_running(struct comedi_subdevice *s)
{ {
......
...@@ -367,7 +367,6 @@ bool comedi_is_subdevice_running(struct comedi_subdevice *s); ...@@ -367,7 +367,6 @@ bool comedi_is_subdevice_running(struct comedi_subdevice *s);
int comedi_check_chanlist(struct comedi_subdevice *s, int comedi_check_chanlist(struct comedi_subdevice *s,
int n, int n,
unsigned int *chanlist); unsigned int *chanlist);
unsigned comedi_get_subdevice_runflags(struct comedi_subdevice *s);
/* range stuff */ /* range stuff */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册