Skip to content

Commit

Permalink
staging: comedi: pcmda12: remove 'IOSIZE' define
Browse files Browse the repository at this point in the history
This define has a very generic name. Its only used in one place
so instead of renaming it just remove it and 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>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jun 5, 2013
1 parent ef7654c commit 7af94fe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/staging/comedi/drivers/pcmda12.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ Configuration Options:

#include "../comedidev.h"

#define IOSIZE 16

/* AI range is not configurable, it's set by jumpers on the board */
static const struct comedi_lrange pcmda12_ranges = {
3, {
Expand Down Expand Up @@ -135,7 +133,7 @@ static int pcmda12_attach(struct comedi_device *dev,
struct comedi_subdevice *s;
int ret;

ret = comedi_request_region(dev, it->options[0], IOSIZE);
ret = comedi_request_region(dev, it->options[0], 0x10);
if (ret)
return ret;

Expand Down

0 comments on commit 7af94fe

Please sign in to comment.