staging: comedi: pcmda12: remove 'IOSIZE' define
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 4 Jun 2013 02:06:02 +0000 (19:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jun 2013 22:35:39 +0000 (15:35 -0700)
This define has a very generic name. Its only used in one place
so instead of renaming it just remove it and 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/pcmda12.c

index bc6cdd1b53d3f32ca29a05cba46752dbd1db2146..9dfb8546db9b24ed4453f1aeb852a85a3b39179e 100644 (file)
@@ -49,8 +49,6 @@ Configuration Options:
 
 #include "../comedidev.h"
 
-#define IOSIZE 16
-
 /* AI range is not configurable, it's set by jumpers on the board */
 static const struct comedi_lrange pcmda12_ranges = {
        3, {
@@ -135,7 +133,7 @@ static int pcmda12_attach(struct comedi_device *dev,
        struct comedi_subdevice *s;
        int ret;
 
-       ret = comedi_request_region(dev, it->options[0], IOSIZE);
+       ret = comedi_request_region(dev, it->options[0], 0x10);
        if (ret)
                return ret;