diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2014-05-28 23:34:51 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-06-18 21:34:44 (GMT) |
commit | 9fc4f9f531c6ace14108e70c45540376cbb63804 (patch) | |
tree | 6e8df85db2fa8bba9a6619df81d562a0976e30b0 /drivers/staging | |
parent | bc778ef526ed4daa027368cc5d8b8ad893b3af0c (diff) | |
download | linux-9fc4f9f531c6ace14108e70c45540376cbb63804.tar.xz |
staging: comedi: adq12b: remove ADQ12B_SIZE define
This define is only used in the comedi_request_region() call to
specify the I/O resource size. 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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/comedi/drivers/adq12b.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/comedi/drivers/adq12b.c b/drivers/staging/comedi/drivers/adq12b.c index 6700320..c5d752d 100644 --- a/drivers/staging/comedi/drivers/adq12b.c +++ b/drivers/staging/comedi/drivers/adq12b.c @@ -79,8 +79,6 @@ If you do not specify any options, they will default to #include "../comedidev.h" /* address scheme (page 2.17 of the manual) */ -#define ADQ12B_SIZE 16 - #define ADQ12B_CTREG 0x00 #define ADQ12B_STINR 0x00 #define ADQ12B_OUTBR 0x04 @@ -208,7 +206,7 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it) struct comedi_subdevice *s; int ret; - ret = comedi_request_region(dev, it->options[0], ADQ12B_SIZE); + ret = comedi_request_region(dev, it->options[0], 0x10); if (ret) return ret; |