staging: comedi: addi_apci_1564: remove len_chanlist from di and do subdevices
authorChase Southwood <chase.southwood@gmail.com>
Fri, 11 Jul 2014 04:01:26 +0000 (23:01 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 00:38:42 +0000 (17:38 -0700)
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: 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 5924421bc949bda16b93c5fc06a41471535999b7..675054f080d70e7e8cab23870ec6af1db111ca65 100644 (file)
@@ -385,7 +385,6 @@ static int apci1564_auto_attach(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 = apci1564_di_insn_bits;
 
@@ -395,7 +394,6 @@ static int apci1564_auto_attach(struct comedi_device *dev,
        s->subdev_flags = SDF_WRITEABLE;
        s->n_chan = 32;
        s->maxdata = 0xffffffff;
-       s->len_chanlist = 32;
        s->range_table = &range_digital;
        s->insn_config = apci1564_do_config;
        s->insn_bits = apci1564_do_insn_bits;