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

staging: comedi: 8255: prefer using the BIT macro

Fix the checkpatch.pl issues.
Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent fa9df8e3
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
#define I8255_DATA_B_REG 0x01 #define I8255_DATA_B_REG 0x01
#define I8255_DATA_C_REG 0x02 #define I8255_DATA_C_REG 0x02
#define I8255_CTRL_REG 0x03 #define I8255_CTRL_REG 0x03
#define I8255_CTRL_C_LO_IO (1 << 0) #define I8255_CTRL_C_LO_IO BIT(0)
#define I8255_CTRL_B_IO (1 << 1) #define I8255_CTRL_B_IO BIT(1)
#define I8255_CTRL_B_MODE (1 << 2) #define I8255_CTRL_B_MODE BIT(2)
#define I8255_CTRL_C_HI_IO (1 << 3) #define I8255_CTRL_C_HI_IO BIT(3)
#define I8255_CTRL_A_IO (1 << 4) #define I8255_CTRL_A_IO BIT(4)
#define I8255_CTRL_A_MODE(x) ((x) << 5) #define I8255_CTRL_A_MODE(x) ((x) << 5)
#define I8255_CTRL_CW (1 << 7) #define I8255_CTRL_CW BIT(7)
struct comedi_device; struct comedi_device;
struct comedi_subdevice; struct comedi_subdevice;
......
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