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

staging: comedi: pcl711: remove PCL711_SIZE

This define is only used in the comedi_request_region() call. It doesn't
really add any clarity to the code so remove it 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 baa71891
...@@ -62,8 +62,6 @@ supported. ...@@ -62,8 +62,6 @@ supported.
#include "comedi_fc.h" #include "comedi_fc.h"
#include "8253.h" #include "8253.h"
#define PCL711_SIZE 16
#define PCL711_CTR0 0 #define PCL711_CTR0 0
#define PCL711_CTR1 1 #define PCL711_CTR1 1
#define PCL711_CTR2 2 #define PCL711_CTR2 2
...@@ -479,7 +477,7 @@ static int pcl711_attach(struct comedi_device *dev, struct comedi_devconfig *it) ...@@ -479,7 +477,7 @@ static int pcl711_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int ret; int ret;
struct comedi_subdevice *s; struct comedi_subdevice *s;
ret = comedi_request_region(dev, it->options[0], PCL711_SIZE); 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