]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: comedi: s626: cleanup comedi_lrange table
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 22 Mar 2013 22:56:32 +0000 (15:56 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:44:44 +0000 (11:44 -0700)
Reformat the whitespace in the comedi_lrange table and use the
BIP_RANGE() macro instead of generic RANGE() macro.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index fe768e79c6bf757b58985cc37b969ac94040bf9c..d5bf8c8d35d5d6536fb47f916006534cd6396cc7 100644 (file)
@@ -164,10 +164,11 @@ struct enc_private {
 #define I2C_B1(ATTR, VAL)      (((ATTR) << 4) | ((VAL) << 16))
 #define I2C_B0(ATTR, VAL)      (((ATTR) << 2) | ((VAL) <<  8))
 
-static const struct comedi_lrange s626_range_table = { 2, {
-                                                          RANGE(-5, 5),
-                                                          RANGE(-10, 10),
-                                                          }
+static const struct comedi_lrange s626_range_table = {
+       2, {
+               BIP_RANGE(5),
+               BIP_RANGE(10),
+       }
 };
 
 /*  Execute a DEBI transfer.  This must be called from within a */