summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-03-26 23:44:43 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-29 00:12:56 +0100
commitd3796f7410852ed687952fd5d4fd8457c0c4063a (patch)
treee993a132c322819edcdfd1b15af2b4bf3b3142fd
parentstaging: comedi: s626: cleanup subdevice init (diff)
downloadlinux-d3796f7410852ed687952fd5d4fd8457c0c4063a.tar.xz
linux-d3796f7410852ed687952fd5d4fd8457c0c4063a.zip
staging: comedi: s626: remove the ai (*insn_config) function
This subdevice function is not implemented in the driver. Just remove it. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/comedi/drivers/s626.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c
index 085b50d6ed07..528a40b072ae 100644
--- a/drivers/staging/comedi/drivers/s626.c
+++ b/drivers/staging/comedi/drivers/s626.c
@@ -1107,15 +1107,6 @@ static void ResetADC(struct comedi_device *dev, uint8_t *ppl)
/* End of RPS program build */
}
-/* TO COMPLETE, IF NECESSARY */
-static int s626_ai_insn_config(struct comedi_device *dev,
- struct comedi_subdevice *s,
- struct comedi_insn *insn, unsigned int *data)
-{
-
- return -EINVAL;
-}
-
#ifdef unused_code
static int s626_ai_rinsn(struct comedi_device *dev,
struct comedi_subdevice *s,
@@ -2657,7 +2648,6 @@ static int s626_auto_attach(struct comedi_device *dev,
s->maxdata = 0x3fff;
s->range_table = &s626_range_table;
s->len_chanlist = S626_ADC_CHANNELS;
- s->insn_config = s626_ai_insn_config;
s->insn_read = s626_ai_insn_read;
s->do_cmd = s626_ai_cmd;
s->do_cmdtest = s626_ai_cmdtest;