staging: comedi: addi_apci_1516: remove setting of s->io_bits
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 13 Nov 2012 20:45:23 +0000 (13:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:12:54 +0000 (15:12 -0800)
This value only has meaning for dio subdevices. Don't bother setting
it for the di and do subdevices in this driver.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1516.c

index 415b347ac7e94a9b7c8e363190837aacdf6f1320..978b3cdc97bb1193887cf02d648120a9d3b36a05 100644 (file)
@@ -242,7 +242,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
                s->n_chan = this_board->di_nchan;
                s->maxdata = 1;
                s->range_table = &range_digital;
-               s->io_bits = 0; /* all bits input */
                s->insn_bits = apci1516_di_insn_bits;
        } else {
                s->type = COMEDI_SUBD_UNUSED;
@@ -256,7 +255,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
                s->n_chan = this_board->do_nchan;
                s->maxdata = 1;
                s->range_table = &range_digital;
-               s->io_bits = 0xf;       /* all bits output */
                s->insn_bits = apci1516_do_insn_bits;
        } else {
                s->type = COMEDI_SUBD_UNUSED;