Commit df8f09bb authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: rti802: remove RTI802_SIZE define

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f0571cb4
...@@ -35,8 +35,6 @@ Configuration Options: ...@@ -35,8 +35,6 @@ Configuration Options:
#include <linux/module.h> #include <linux/module.h>
#include "../comedidev.h" #include "../comedidev.h"
#define RTI802_SIZE 4
#define RTI802_SELECT 0 #define RTI802_SELECT 0
#define RTI802_DATALOW 1 #define RTI802_DATALOW 1
#define RTI802_DATAHIGH 2 #define RTI802_DATAHIGH 2
...@@ -88,7 +86,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -88,7 +86,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int i; int i;
int ret; int ret;
ret = comedi_request_region(dev, it->options[0], RTI802_SIZE); ret = comedi_request_region(dev, it->options[0], 0x04);
if (ret) if (ret)
return ret; return ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment