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

staging: comedi: drivers: remove unnecessary *_{IO, MEM}SIZE defines

Some of the legacy comedi drivers have a *_{IO,MEM}SIZE define that is
only passed to comedi_request_region() to specify the size of the region.

For aesthetics, remove these defines.
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 71e06874
...@@ -40,9 +40,6 @@ Configuration Options: ...@@ -40,9 +40,6 @@ Configuration Options:
#include "comedi_fc.h" #include "comedi_fc.h"
/* Board register addresses */ /* Board register addresses */
#define DMM32AT_MEMSIZE 0x10
#define DMM32AT_CONV 0x00 #define DMM32AT_CONV 0x00
#define DMM32AT_AILSB 0x00 #define DMM32AT_AILSB 0x00
#define DMM32AT_AUXDOUT 0x01 #define DMM32AT_AUXDOUT 0x01
...@@ -684,7 +681,7 @@ static int dmm32at_attach(struct comedi_device *dev, ...@@ -684,7 +681,7 @@ static int dmm32at_attach(struct comedi_device *dev,
struct comedi_subdevice *s; struct comedi_subdevice *s;
unsigned char aihi, ailo, fifostat, aistat, intstat, airback; unsigned char aihi, ailo, fifostat, aistat, intstat, airback;
ret = comedi_request_region(dev, it->options[0], DMM32AT_MEMSIZE); ret = comedi_request_region(dev, it->options[0], 0x10);
if (ret) if (ret)
return ret; return ret;
......
...@@ -40,9 +40,6 @@ Configuration options: ...@@ -40,9 +40,6 @@ Configuration options:
#define DT2801_MAX_DMA_SIZE (64 * 1024) #define DT2801_MAX_DMA_SIZE (64 * 1024)
/* Ports */
#define DT2801_IOSIZE 2
/* define's */ /* define's */
/* ====================== */ /* ====================== */
...@@ -552,7 +549,7 @@ static int dt2801_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -552,7 +549,7 @@ static int dt2801_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int ret = 0; int ret = 0;
int n_ai_chans; int n_ai_chans;
ret = comedi_request_region(dev, it->options[0], DT2801_IOSIZE); ret = comedi_request_region(dev, it->options[0], 0x2);
if (ret) if (ret)
return ret; return ret;
......
...@@ -81,8 +81,6 @@ ...@@ -81,8 +81,6 @@
#define RTI800_9513A_CNTRL 0x0d #define RTI800_9513A_CNTRL 0x0d
#define RTI800_9513A_STATUS 0x0d #define RTI800_9513A_STATUS 0x0d
#define RTI800_IOSIZE 0x10
static const struct comedi_lrange range_rti800_ai_10_bipolar = { static const struct comedi_lrange range_rti800_ai_10_bipolar = {
4, { 4, {
BIP_RANGE(10), BIP_RANGE(10),
...@@ -281,7 +279,7 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -281,7 +279,7 @@ static int rti800_attach(struct comedi_device *dev, struct comedi_devconfig *it)
struct comedi_subdevice *s; struct comedi_subdevice *s;
int ret; int ret;
ret = comedi_request_region(dev, it->options[0], RTI800_IOSIZE); ret = comedi_request_region(dev, it->options[0], 0x10);
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