Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83bb524d authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

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: 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 6d28bea9
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;