Skip to contentSkip to conversation

staging: comedi: cb_das16_cs: use the BIP_RANGE helper macro

PATCH In review H Hartley Sweeten 1 participant 1 message Jun 26, 2012 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 31/33 staging: comedi: cb_das16_cs: use the BIP_RANGE helper macro

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.

Cc Ian Abbott <[email protected]>
Cc Frank Mori Hess <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>
---
 drivers/staging/comedi/drivers/cb_das16_cs.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/staging/comedi/drivers/cb_das16_cs.c +7 -6
index 68e6436..0d303d1 100644
@@ -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)
Signature · 1 line
1.7.11