提交 135998cc 编写于 作者: G Greg Kroah-Hartman

Staging: comedi: 8255.c: mark some functions static

sparse pointed out that these functions should be static, so mark them
as such.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 30162d69
...@@ -120,7 +120,7 @@ COMEDI_INITCLEANUP(driver_8255); ...@@ -120,7 +120,7 @@ COMEDI_INITCLEANUP(driver_8255);
static void do_config(struct comedi_device *dev, struct comedi_subdevice *s); static void do_config(struct comedi_device *dev, struct comedi_subdevice *s);
void subdev_8255_interrupt(struct comedi_device *dev, static void subdev_8255_interrupt(struct comedi_device *dev,
struct comedi_subdevice *s) struct comedi_subdevice *s)
{ {
short d; short d;
...@@ -319,7 +319,8 @@ static int subdev_8255_cancel(struct comedi_device *dev, ...@@ -319,7 +319,8 @@ static int subdev_8255_cancel(struct comedi_device *dev,
return 0; return 0;
} }
int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, static int subdev_8255_init(struct comedi_device *dev,
struct comedi_subdevice *s,
int (*cb) (int, int, int, unsigned long), int (*cb) (int, int, int, unsigned long),
unsigned long arg) unsigned long arg)
{ {
...@@ -349,7 +350,8 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -349,7 +350,8 @@ int subdev_8255_init(struct comedi_device *dev, struct comedi_subdevice *s,
} }
EXPORT_SYMBOL(subdev_8255_init); EXPORT_SYMBOL(subdev_8255_init);
int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s, static int subdev_8255_init_irq(struct comedi_device *dev,
struct comedi_subdevice *s,
int (*cb) (int, int, int, unsigned long), int (*cb) (int, int, int, unsigned long),
unsigned long arg) unsigned long arg)
{ {
...@@ -369,7 +371,8 @@ int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s, ...@@ -369,7 +371,8 @@ int subdev_8255_init_irq(struct comedi_device *dev, struct comedi_subdevice *s,
} }
EXPORT_SYMBOL(subdev_8255_init_irq); EXPORT_SYMBOL(subdev_8255_init_irq);
void subdev_8255_cleanup(struct comedi_device *dev, struct comedi_subdevice *s) static void subdev_8255_cleanup(struct comedi_device *dev,
struct comedi_subdevice *s)
{ {
if (s->private) { if (s->private) {
/* this test does nothing, so comment it out /* this test does nothing, so comment it out
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册