]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
staging: comedi: ni_tio: tidy up Gi_Auto_Increment_Reg_Bits
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 28 Jul 2014 17:26:49 +0000 (10:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:50:59 +0000 (16:50 -0700)
Convert this enum into defines and rename the CamelCase symbols.

For aesthetics, move the new defines so they are associated with
the register 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>
drivers/staging/comedi/drivers/ni_tio_internal.h

index 55f1bfc3cff85921df42823e025d1a4f0b702396..4c19149b27012a03db46c5ed0529f013ee594c1d 100644 (file)
@@ -22,6 +22,7 @@
 #include "ni_tio.h"
 
 #define NITIO_AUTO_INC_REG(x)          (NITIO_G0_AUTO_INC + (x))
+#define GI_AUTO_INC_MASK               0xff
 #define NITIO_CMD_REG(x)               (NITIO_G0_CMD + (x))
 #define GI_ARM                         (1 << 0)
 #define GI_SAVE_TRACE                  (1 << 1)
 #define NITIO_STATUS_REG(x)            (NITIO_G0_STATUS + (x))
 #define NITIO_INT_ENA_REG(x)           (NITIO_G0_INT_ENA + (x))
 
-enum Gi_Auto_Increment_Reg_Bits {
-       Gi_Auto_Increment_Mask = 0xff
-};
-
 #define Gi_Source_Select_Shift 2
 #define Gi_Gate_Select_Shift 7
 enum Gi_Input_Select_Bits {