staging: comedi: addi_apci_1564: fix s->maxdata assignment in do subdevice init.
authorChase Southwood <chase.southwood@gmail.com>
Fri, 11 Jul 2014 04:02:55 +0000 (23:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 00:38:42 +0000 (17:38 -0700)
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>
drivers/staging/comedi/drivers/addi_apci_1564.c

index f91aedd9c869e3cf38c0e3f83ba3a51259a9aa16..1e25342ebc81e467516d83be684dcfa074880351 100644 (file)
@@ -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;