Commit dc413f7a authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: addi_apci_2032: prefer using the BIT macro

As suggested by checkpatch.pl, use the BIT macro to define the
register bits.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bb46c4ec
...@@ -34,13 +34,13 @@ ...@@ -34,13 +34,13 @@
*/ */
#define APCI2032_DO_REG 0x00 #define APCI2032_DO_REG 0x00
#define APCI2032_INT_CTRL_REG 0x04 #define APCI2032_INT_CTRL_REG 0x04
#define APCI2032_INT_CTRL_VCC_ENA (1 << 0) #define APCI2032_INT_CTRL_VCC_ENA BIT(0)
#define APCI2032_INT_CTRL_CC_ENA (1 << 1) #define APCI2032_INT_CTRL_CC_ENA BIT(1)
#define APCI2032_INT_STATUS_REG 0x08 #define APCI2032_INT_STATUS_REG 0x08
#define APCI2032_INT_STATUS_VCC (1 << 0) #define APCI2032_INT_STATUS_VCC BIT(0)
#define APCI2032_INT_STATUS_CC (1 << 1) #define APCI2032_INT_STATUS_CC BIT(1)
#define APCI2032_STATUS_REG 0x0c #define APCI2032_STATUS_REG 0x0c
#define APCI2032_STATUS_IRQ (1 << 0) #define APCI2032_STATUS_IRQ BIT(0)
#define APCI2032_WDOG_REG 0x10 #define APCI2032_WDOG_REG 0x10
struct apci2032_int_private { struct apci2032_int_private {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment