[PATCH 306/577] Staging: comedi: kcomedilib: comedi_do_insn is now static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
Cc: Frank Mori Hess <fmhess@xxxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/staging/comedi/comedilib.h                 |    3 ---
 .../staging/comedi/kcomedilib/kcomedilib_main.c    |    2 +-
 2 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/comedi/comedilib.h b/drivers/staging/comedi/comedilib.h
index 0041435..23ec58d 100644
--- a/drivers/staging/comedi/comedilib.h
+++ b/drivers/staging/comedi/comedilib.h
@@ -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
diff --git a/drivers/staging/comedi/kcomedilib/kcomedilib_main.c b/drivers/staging/comedi/kcomedilib/kcomedilib_main.c
index 7cb29f2..d27de93 100644
--- a/drivers/staging/comedi/kcomedilib/kcomedilib_main.c
+++ b/drivers/staging/comedi/kcomedilib/kcomedilib_main.c
@@ -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;
-- 
1.7.0.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux