staging: comedi: addi_apci_3120: remove apci3120_ai_insn_config()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Nov 2014 17:54:31 +0000 (10:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:34:01 +0000 (09:34 -0800)
This function does not follow the comedi API for (*insn_config) functions.
It's also no long needed. 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>
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3120.c
drivers/staging/comedi/drivers/addi_apci_3120.c

index 40ff942f1f08f25de126ca59e4d317fbe211b85d..5d15acacc2598d003a3a294cf9f932ee53e5ab3a 100644 (file)
@@ -104,21 +104,6 @@ This program is distributed in the hope that it will be useful, but WITHOUT ANY
 
 #define APCI3120_COUNTER               3
 
-static int apci3120_ai_insn_config(struct comedi_device *dev,
-                                  struct comedi_subdevice *s,
-                                  struct comedi_insn *insn,
-                                  unsigned int *data)
-{
-       struct apci3120_private *devpriv = dev->private;
-
-       if (data[0] != APCI3120_EOC_MODE)
-               return -1;
-
-       devpriv->b_InterruptMode = APCI3120_EOC_MODE;
-
-       return insn->n;
-}
-
 static int apci3120_setup_chan_list(struct comedi_device *dev,
                                    struct comedi_subdevice *s,
                                    int n_chan, unsigned int *chanlist)
index e7564ad8e140ee55e4b607bf7314479598a180cf..572d545e7492c1a594906f9c7cf5b6d4d3d3907b 100644 (file)
@@ -381,7 +381,6 @@ static int apci3120_auto_attach(struct comedi_device *dev,
        s->n_chan       = 16;
        s->maxdata      = this_board->ai_is_16bit ? 0xffff : 0x0fff;
        s->range_table  = &apci3120_ai_range;
-       s->insn_config  = apci3120_ai_insn_config;
        s->insn_read    = apci3120_ai_insn_read;
        if (0 /* dev->irq */) {
                dev->read_subdev = s;