]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: pcl711: remove PCL711_SIZE
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 20 Sep 2013 23:36:17 +0000 (16:36 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Sep 2013 22:59:57 +0000 (15:59 -0700)
This define is only used in the comedi_request_region() call. It doesn't
really add any clarity to the code so remove it 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/pcl711.c

index 45a8614fb2f65a4947e397f534fd3e99427750d0..173e6c6393348bb7b079b32b90f5e1dc1b0cf97f 100644 (file)
@@ -62,8 +62,6 @@ supported.
 #include "comedi_fc.h"
 #include "8253.h"
 
-#define PCL711_SIZE 16
-
 #define PCL711_CTR0 0
 #define PCL711_CTR1 1
 #define PCL711_CTR2 2
@@ -479,7 +477,7 @@ static int pcl711_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        int ret;
        struct comedi_subdevice *s;
 
-       ret = comedi_request_region(dev, it->options[0], PCL711_SIZE);
+       ret = comedi_request_region(dev, it->options[0], 0x10);
        if (ret)
                return ret;