]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
staging: comedi: cb_das16_cs: use the BIP_RANGE helper macro
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 26 Jun 2012 00:22:18 +0000 (17:22 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 26 Jun 2012 22:35:23 +0000 (15:35 -0700)
The BIP_RANGE(a) macro can be used instead of the RANGE(a,b)
macro when -a == b. And it's a bit clearer that this is a bipolar
range.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/cb_das16_cs.c

index 68e6436dc7a0d96655c3519e717aa134d3285520..0d303d1fc5c509679b4b0f06f7a258ad7c24df34 100644 (file)
@@ -90,12 +90,13 @@ struct das16cs_private {
 
 static struct pcmcia_device *cur_dev;
 
-static const struct comedi_lrange das16cs_ai_range = { 4, {
-                                                          RANGE(-10, 10),
-                                                          RANGE(-5, 5),
-                                                          RANGE(-2.5, 2.5),
-                                                          RANGE(-1.25, 1.25),
-                                                          }
+static const struct comedi_lrange das16cs_ai_range = {
+       4, {
+               BIP_RANGE(10),
+               BIP_RANGE(5),
+               BIP_RANGE(2.5),
+               BIP_RANGE(1.25),
+       }
 };
 
 static irqreturn_t das16cs_interrupt(int irq, void *d)