From: Greg Kroah-Hartman Date: Mon, 3 May 2010 21:49:54 +0000 (-0700) Subject: Staging: comedi: kcomedilib: comedi_do_insn is now static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=88cccef0193a7f8c6a73326404c0b2f9ad27f71a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Staging: comedi: kcomedilib: comedi_do_insn is now static 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 Cc: Frank Mori Hess Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/comedilib.h b/drivers/staging/comedi/comedilib.h index 00414359138d..23ec58d2e239 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 7cb29f2bc862..d27de93ff4dd 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;