]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: me4000: tidy up ME4000_AI_CHANNEL_LIST_REG bit defines
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 5 Aug 2015 17:44:53 +0000 (10:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Aug 2015 22:03:28 +0000 (15:03 -0700)
Use the BIT() macro to define the bits of this register.

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/me4000.c

index 5b798a63589b86bf63636b900ef763cda3936a25..39dbdafdc953c1f6a689f1be56500bb57eba8513 100644 (file)
@@ -110,9 +110,9 @@ broken.
 #define ME4000_AI_STATUS_BIT_FSM               (1 << 29)
 #define ME4000_AI_CTRL_BIT_EX_TRIG_BOTH                (1 << 31)
 #define ME4000_AI_CHANNEL_LIST_REG             0x78
-#define ME4000_AI_LIST_INPUT_DIFFERENTIAL      (1 << 5)
+#define ME4000_AI_LIST_INPUT_DIFFERENTIAL      BIT(5)
 #define ME4000_AI_LIST_RANGE(x)                        ((3 - ((x) & 3)) << 6)
-#define ME4000_AI_LIST_LAST_ENTRY              (1 << 8)
+#define ME4000_AI_LIST_LAST_ENTRY              BIT(8)
 #define ME4000_AI_DATA_REG                     0x7c
 #define ME4000_AI_CHAN_TIMER_REG               0x80
 #define ME4000_AI_CHAN_PRE_TIMER_REG           0x84