staging: comedi: adl_pci9118: remove PCI9118_CHANLEN
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 19 Oct 2015 20:13:00 +0000 (13:13 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 02:17:13 +0000 (19:17 -0700)
This define is only used to initialize the analog input sudevice
'len_chanlist'. Remove the define and just open code the value.

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>
drivers/staging/comedi/drivers/adl_pci9118.c

index 493bdef241be2d0371477454d16f616a796c4eba..87c2ddde61244719d4d8ed21ce0ee41dac20767e 100644 (file)
 #include "amcc_s5933.h"
 #include "comedi_8254.h"
 
-#define PCI9118_CHANLEN        255     /*
-                                * len of chanlist, some source say 256,
-                                * but reality looks like 255 :-(
-                                */
-
 /*
  * PCI BAR2 Register map (dev->iobase)
  */
@@ -1595,7 +1590,7 @@ static int pci9118_common_attach(struct comedi_device *dev,
        if (dev->irq) {
                dev->read_subdev = s;
                s->subdev_flags |= SDF_CMD_READ;
-               s->len_chanlist = PCI9118_CHANLEN;
+               s->len_chanlist = 255;
                s->do_cmdtest   = pci9118_ai_cmdtest;
                s->do_cmd       = pci9118_ai_cmd;
                s->cancel       = pci9118_ai_cancel;
This page took 0.02692 seconds and 5 git commands to generate.