staging: comedi: adq12b: prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 9 Oct 2015 18:53:48 +0000 (11:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 06:32:46 +0000 (23:32 -0700)
As suggested by checkpatch.pl, use the BIT macro to define the
register bits.

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

index 6762c217bab67f45809f506989bc928dc5db711d..dbb9d588c7298ae22971af3cde4e7140669868a8 100644 (file)
 
 /* address scheme (page 2.17 of the manual) */
 #define ADQ12B_CTREG           0x00
-#define ADQ12B_CTREG_MSKP      (1 << 7)        /* enable pacer interrupt */
-#define ADQ12B_CTREG_GTP       (1 << 6)        /* enable pacer */
+#define ADQ12B_CTREG_MSKP      BIT(7)  /* enable pacer interrupt */
+#define ADQ12B_CTREG_GTP       BIT(6)  /* enable pacer */
 #define ADQ12B_CTREG_RANGE(x)  ((x) << 4)
 #define ADQ12B_CTREG_CHAN(x)   ((x) << 0)
 #define ADQ12B_STINR           0x00
-#define ADQ12B_STINR_OUT2      (1 << 7)        /* timer 2 output state */
-#define ADQ12B_STINR_OUTP      (1 << 6)        /* pacer output state */
-#define ADQ12B_STINR_EOC       (1 << 5)        /* A/D end-of-conversion */
+#define ADQ12B_STINR_OUT2      BIT(7)  /* timer 2 output state */
+#define ADQ12B_STINR_OUTP      BIT(6)  /* pacer output state */
+#define ADQ12B_STINR_EOC       BIT(5)  /* A/D end-of-conversion */
 #define ADQ12B_STINR_IN_MASK   (0x1f << 0)
 #define ADQ12B_OUTBR           0x04
 #define ADQ12B_ADLOW           0x08