Commit a42ed4a5 authored by Chase Southwood's avatar Chase Southwood Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_1564: remove len_chanlist from di and do subdevices

This value is only needed for subdevices that support async commands.
The comedi core will default the value to 1 when it is not initialized.
Signed-off-by: default avatarChase Southwood <chase.southwood@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f9ef05ce
...@@ -385,7 +385,6 @@ static int apci1564_auto_attach(struct comedi_device *dev, ...@@ -385,7 +385,6 @@ static int apci1564_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_READABLE; s->subdev_flags = SDF_READABLE;
s->n_chan = 32; s->n_chan = 32;
s->maxdata = 1; s->maxdata = 1;
s->len_chanlist = 32;
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_bits = apci1564_di_insn_bits; s->insn_bits = apci1564_di_insn_bits;
...@@ -395,7 +394,6 @@ static int apci1564_auto_attach(struct comedi_device *dev, ...@@ -395,7 +394,6 @@ static int apci1564_auto_attach(struct comedi_device *dev,
s->subdev_flags = SDF_WRITEABLE; s->subdev_flags = SDF_WRITEABLE;
s->n_chan = 32; s->n_chan = 32;
s->maxdata = 0xffffffff; s->maxdata = 0xffffffff;
s->len_chanlist = 32;
s->range_table = &range_digital; s->range_table = &range_digital;
s->insn_config = apci1564_do_config; s->insn_config = apci1564_do_config;
s->insn_bits = apci1564_do_insn_bits; s->insn_bits = apci1564_do_insn_bits;
......
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