Commit 308d703b authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

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

This value only has meaning for subdevices that support async commands.
Since this driver does not support async commands on any of its subdevices,
don't bother setting it . The comedi core will detect this and set the
value appropriately.
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 87450c02
...@@ -241,7 +241,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -241,7 +241,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_COMMON; s->subdev_flags = SDF_READABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = this_board->di_nchan; s->n_chan = this_board->di_nchan;
s->maxdata = 1; s->maxdata = 1;
s->len_chanlist = this_board->di_nchan;
s->range_table = &range_digital; s->range_table = &range_digital;
s->io_bits = 0; /* all bits input */ s->io_bits = 0; /* all bits input */
s->insn_bits = apci1516_di_insn_bits; s->insn_bits = apci1516_di_insn_bits;
...@@ -256,7 +255,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -256,7 +255,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON; SDF_READABLE | SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = this_board->do_nchan; s->n_chan = this_board->do_nchan;
s->maxdata = 1; s->maxdata = 1;
s->len_chanlist = this_board->do_nchan;
s->range_table = &range_digital; s->range_table = &range_digital;
s->io_bits = 0xf; /* all bits output */ s->io_bits = 0xf; /* all bits output */
s->insn_bits = apci1516_do_insn_bits; s->insn_bits = apci1516_do_insn_bits;
...@@ -271,7 +269,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev, ...@@ -271,7 +269,6 @@ static int __devinit apci1516_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON; s->subdev_flags = SDF_WRITEABLE | SDF_GROUND | SDF_COMMON;
s->n_chan = 1; s->n_chan = 1;
s->maxdata = 0; s->maxdata = 0;
s->len_chanlist = 1;
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_write = i_APCI1516_StartStopWriteWatchdog; s->insn_write = i_APCI1516_StartStopWriteWatchdog;
s->insn_read = i_APCI1516_ReadWatchdog; s->insn_read = i_APCI1516_ReadWatchdog;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment