Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5aaa8bc3 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: addi_apci_1516: remove setting of s->io_bits



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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 308d703b
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;