diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-05-28 23:34:52 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-18 21:34:44 (GMT) |
commit | 11c4e2db8ef149e36471f4bbb3c296b48533f28f (patch) | |
tree | dbb894e821b22979822ec22b5c3a1d6bc27f931f /drivers | |
parent | 9fc4f9f531c6ace14108e70c45540376cbb63804 (diff) | |
download | linux-11c4e2db8ef149e36471f4bbb3c296b48533f28f.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/adq12b.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/adq12b.c b/drivers/staging/comedi/drivers/adq12b.c index c5d752d..10f3486 100644 --- a/drivers/staging/comedi/drivers/adq12b.c +++ b/drivers/staging/comedi/drivers/adq12b.c @@ -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]; |