]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: addi_apci_1032: remove len_chanlist on di subdevice
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 5 Nov 2012 21:42:09 +0000 (14:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 Nov 2012 08:30:58 +0000 (09:30 +0100)
This value is only needed for subdevices that support async commands.
The comedi core will default the value to 1 when it is not initialized.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1032.c

index b2736356d850a0cebaadeddfbd33f9ccfad77c4b..f9c2e628601fa709a0545989e049cd6708b44392 100644 (file)
@@ -284,7 +284,6 @@ static int apci1032_attach_pci(struct comedi_device *dev,
        s->subdev_flags = SDF_READABLE;
        s->n_chan       = 32;
        s->maxdata      = 1;
-       s->len_chanlist = 32;
        s->range_table  = &range_digital;
        s->insn_bits    = apci1032_di_insn_bits;