staging: comedi: rti802: remove RTI802_SIZE define
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 13 Mar 2014 22:48:37 +0000 (15:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Mar 2014 21:20:09 +0000 (14:20 -0700)
This define is only used in the attach to specify the I/O region size
passed to comedi_request_region(). 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/rti802.c

index a3fa2a4baef43f0491defc36d06c59cd2acb5233..c5c37a2c5f841f1a07badefdd36e560d296ac85f 100644 (file)
@@ -35,8 +35,6 @@ Configuration Options:
 #include <linux/module.h>
 #include "../comedidev.h"
 
-#define RTI802_SIZE 4
-
 #define RTI802_SELECT 0
 #define RTI802_DATALOW 1
 #define RTI802_DATAHIGH 2
@@ -88,7 +86,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        int i;
        int ret;
 
-       ret = comedi_request_region(dev, it->options[0], RTI802_SIZE);
+       ret = comedi_request_region(dev, it->options[0], 0x04);
        if (ret)
                return ret;