Staging: comedi: kcomedilib: comedi_do_insn is now static
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 3 May 2010 21:49:54 +0000 (14:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:36:02 +0000 (11:36 -0700)
No one else calls this function, so mark it static.
Now we can strip out the unneeded functionality in here as well.

Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/comedilib.h
drivers/staging/comedi/kcomedilib/kcomedilib_main.c

index 00414359138d72a7d3d8bd5a156d0b41f4526afa..23ec58d2e2395332b843c586cd02b5982d9f30d8 100644 (file)
@@ -33,7 +33,4 @@ int comedi_dio_bitfield(void *dev, unsigned int subdev, unsigned int mask,
 int comedi_find_subdevice_by_type(void *dev, int type, unsigned int subd);
 int comedi_get_n_channels(void *dev, unsigned int subdevice);
 
-/* internal to kcomedilb */
-int comedi_do_insn(void *dev, struct comedi_insn *insn);
-
 #endif
index 7cb29f2bc862bb17f2d21dc258b5f124e4585c8d..d27de93ff4dd107279c52479700452970fd34879 100644 (file)
@@ -84,7 +84,7 @@ EXPORT_SYMBOL(comedi_close);
  *     COMEDI_INSN
  *     perform an instruction
  */
-int comedi_do_insn(void *d, struct comedi_insn *insn)
+static int comedi_do_insn(void *d, struct comedi_insn *insn)
 {
        struct comedi_device *dev = (struct comedi_device *)d;
        struct comedi_subdevice *s;