diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-06-03 19:03:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-05 15:35:37 -0700 |
commit | 83bb524d5f8fb9487e9e294835651f518f791748 (patch) | |
tree | d3c293fc29e4ff182bfc59c1b68e3fe6126b7856 /drivers | |
parent | 6d28bea92c27c383dd224ca6327d84d0dde2e770 (diff) |
staging: comedi: pcmda12: remove 'BITS' define
'BITS' is a pretty generic name for a define. It's only used in
the board attach to set the subdevice 'maxdata' so instead of
renaming the define just open code the value and remove the define.
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')
-rw-r--r-- | drivers/staging/comedi/drivers/pcmda12.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/pcmda12.c b/drivers/staging/comedi/drivers/pcmda12.c index 9b3f061ae177..2aba7bfcde89 100644 --- a/drivers/staging/comedi/drivers/pcmda12.c +++ b/drivers/staging/comedi/drivers/pcmda12.c @@ -55,7 +55,6 @@ Configuration Options: #define MSB(x) ((unsigned char)((((unsigned short)(x))>>8) & 0xff)) #define LSB_PORT(chan) (dev->iobase + (chan)*2) #define MSB_PORT(chan) (LSB_PORT(chan)+1) -#define BITS 12 /* note these have no effect and are merely here for reference.. these are configured by jumpering the board! */ @@ -169,7 +168,7 @@ static int pcmda12_attach(struct comedi_device *dev, s = &dev->subdevices[0]; s->private = NULL; - s->maxdata = (0x1 << BITS) - 1; + s->maxdata = 0x0fff; s->range_table = &pcmda12_ranges; s->type = COMEDI_SUBD_AO; s->subdev_flags = SDF_READABLE | SDF_WRITABLE; |