Commit 5e1a02bd authored by Ranjith Thangavel's avatar Ranjith Thangavel Committed by Greg Kroah-Hartman

comedi: comedi_parport: Fix coding style - use BIT macro

BIT macro is used for defining BIT location instead of
shifting operator - coding style issue
Signed-off-by: default avatarRanjith Thangavel <ranjithece24@gmail.com>
Reviewed-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04226e40
...@@ -75,8 +75,8 @@ ...@@ -75,8 +75,8 @@
#define PARPORT_DATA_REG 0x00 #define PARPORT_DATA_REG 0x00
#define PARPORT_STATUS_REG 0x01 #define PARPORT_STATUS_REG 0x01
#define PARPORT_CTRL_REG 0x02 #define PARPORT_CTRL_REG 0x02
#define PARPORT_CTRL_IRQ_ENA (1 << 4) #define PARPORT_CTRL_IRQ_ENA BIT(4)
#define PARPORT_CTRL_BIDIR_ENA (1 << 5) #define PARPORT_CTRL_BIDIR_ENA BIT(5)
static int parport_data_reg_insn_bits(struct comedi_device *dev, static int parport_data_reg_insn_bits(struct comedi_device *dev,
struct comedi_subdevice *s, struct comedi_subdevice *s,
......
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