staging: comedi: addi_apci_2032: prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 9 Oct 2015 17:47:44 +0000 (10:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 05:58:35 +0000 (22:58 -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/addi_apci_2032.c

index ad715253bdccdfdbeb04993c5ad9ee264ce5f615..e14545dbf076c8dffd65de44b214356168964f78 100644 (file)
  */
 #define APCI2032_DO_REG                        0x00
 #define APCI2032_INT_CTRL_REG          0x04
-#define APCI2032_INT_CTRL_VCC_ENA      (1 << 0)
-#define APCI2032_INT_CTRL_CC_ENA       (1 << 1)
+#define APCI2032_INT_CTRL_VCC_ENA      BIT(0)
+#define APCI2032_INT_CTRL_CC_ENA       BIT(1)
 #define APCI2032_INT_STATUS_REG                0x08
-#define APCI2032_INT_STATUS_VCC                (1 << 0)
-#define APCI2032_INT_STATUS_CC         (1 << 1)
+#define APCI2032_INT_STATUS_VCC                BIT(0)
+#define APCI2032_INT_STATUS_CC         BIT(1)
 #define APCI2032_STATUS_REG            0x0c
-#define APCI2032_STATUS_IRQ            (1 << 0)
+#define APCI2032_STATUS_IRQ            BIT(0)
 #define APCI2032_WDOG_REG              0x10
 
 struct apci2032_int_private {