mirror of https://gitee.com/openkylin/linux.git
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: Chase Southwood <chase.southwood@gmail.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
71893bb077
commit
389e4dea54
|
@ -391,7 +391,7 @@ static int apci1564_auto_attach(struct comedi_device *dev,
|
|||
s->type = COMEDI_SUBD_DO;
|
||||
s->subdev_flags = SDF_WRITEABLE;
|
||||
s->n_chan = 32;
|
||||
s->maxdata = 0xffffffff;
|
||||
s->maxdata = 1;
|
||||
s->range_table = &range_digital;
|
||||
s->insn_config = apci1564_do_config;
|
||||
s->insn_bits = apci1564_do_insn_bits;
|
||||
|
|
Loading…
Reference in New Issue