summaryrefslogtreecommitdiff
path: root/drivers/staging/comedi
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2014-03-13 10:09:56 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-03-17 14:16:15 -0700
commit8f28c9d978f7e8b5e7abe6315d2bb934ea65700c (patch)
tree1b0989afc960e243b6a310e71273476175f8a07c /drivers/staging/comedi
parent6a083a685c208652da034cdb7778b2b55a703c45 (diff)
staging: comedi: fl512: remove Fl512_SIZE define
This define is only used in the comedi_request_region() call to specify the size of the I/O region to request. 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>
Diffstat (limited to 'drivers/staging/comedi')
-rw-r--r--drivers/staging/comedi/drivers/fl512.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/fl512.c b/drivers/staging/comedi/drivers/fl512.c
index 6eb8941520de..4054035d4b6c 100644
--- a/drivers/staging/comedi/drivers/fl512.c
+++ b/drivers/staging/comedi/drivers/fl512.c
@@ -21,7 +21,6 @@ Configuration options:
#include <linux/delay.h>
-#define FL512_SIZE 16 /* the size of the used memory */
struct fl512_private {
unsigned short ao_readback[2];
};
@@ -105,7 +104,7 @@ static int fl512_attach(struct comedi_device *dev, struct comedi_devconfig *it)
struct comedi_subdevice *s;
int ret;
- ret = comedi_request_region(dev, it->options[0], FL512_SIZE);
+ ret = comedi_request_region(dev, it->options[0], 0x10);
if (ret)
return ret;