staging: comedi: pcmda12: remove 'IOSIZE' define
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>
This commit is contained in:
parent
ef7654c056
commit
7af94fe3cd
1 changed files with 1 additions and 3 deletions
|
@ -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, {
|
||||
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue