From: Chase Southwood Date: Fri, 11 Jul 2014 04:02:55 +0000 (-0500) Subject: staging: comedi: addi_apci_1564: fix s->maxdata assignment in do subdevice init. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=389e4dea54e2303059dff4eacd36188d4b6fe6c3;p=linux-beck.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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c index f91aedd9c869..1e25342ebc81 100644 --- a/drivers/staging/comedi/drivers/addi_apci_1564.c +++ b/drivers/staging/comedi/drivers/addi_apci_1564.c @@ -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;