Skip to content

Commit df8f09b

Browse files
H Hartley Sweetengregkh
authored andcommitted
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: H Hartley Sweeten <hsweeten@visionengravers.com> Reviewed-by: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent f0571cb commit df8f09b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/staging/comedi/drivers/rti802.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ Configuration Options:
3535
#include <linux/module.h>
3636
#include "../comedidev.h"
3737

38-
#define RTI802_SIZE 4
39-
4038
#define RTI802_SELECT 0
4139
#define RTI802_DATALOW 1
4240
#define RTI802_DATAHIGH 2
@@ -88,7 +86,7 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
8886
int i;
8987
int ret;
9088

91-
ret = comedi_request_region(dev, it->options[0], RTI802_SIZE);
89+
ret = comedi_request_region(dev, it->options[0], 0x04);
9290
if (ret)
9391
return ret;
9492

0 commit comments

Comments
 (0)