mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 17:35:36 -04:00
staging: comedi: adq12b: remove 's->len_chanlist' init for analog inputs
This driver does not support async commands so the len_chanlist init is unnecessary. Remove it and allow the core to default the value to '1'. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9fc4f9f531
commit
11c4e2db8e
@@ -235,9 +235,6 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
|
||||
: &range_adq12b_ai_bipolar;
|
||||
|
||||
s->maxdata = 0xfff;
|
||||
|
||||
s->len_chanlist = 4; /* This is the maximum chanlist length that
|
||||
the board can handle */
|
||||
s->insn_read = adq12b_ai_insn_read;
|
||||
|
||||
s = &dev->subdevices[1];
|
||||
|
||||
Reference in New Issue
Block a user