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

staging: comedi: addi_apci_1564: fix s->maxdata assignment in do subdevice init.

s->maxdata for the do subdevice should be 1, however currently it is
being set to 0xffffffff.  Fix this.
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 71893bb0
...@@ -391,7 +391,7 @@ static int apci1564_auto_attach(struct comedi_device *dev, ...@@ -391,7 +391,7 @@ static int apci1564_auto_attach(struct comedi_device *dev,
s->type = COMEDI_SUBD_DO; s->type = COMEDI_SUBD_DO;
s->subdev_flags = SDF_WRITEABLE; s->subdev_flags = SDF_WRITEABLE;
s->n_chan = 32; s->n_chan = 32;
s->maxdata = 0xffffffff; s->maxdata = 1;
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