Skip to contentSkip to conversation

comedi: driver: Fix - BIT macro used coding style issue

PATCH New Ranjith 1 participant 1 message Nov 6, 2015 Staging

lore
Share & tools
lore

Ranjith

author
#0 lore raw

PATCH 4/4 comedi: driver: Fix - BIT macro used coding style issue

BIT macro is used for defining bit location instead of shifting operator - coding style issue

---
 drivers/staging/comedi/drivers/comedi_parport.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/comedi/drivers/comedi_parport.c +2 -2
index 15a4093..1bf8ddc 100644
@@ -75,8 +75,8 @@
 #define PARPORT_DATA_REG	0x00
 #define PARPORT_STATUS_REG	0x01
 #define PARPORT_CTRL_REG	0x02
-#define PARPORT_CTRL_IRQ_ENA	(1 << 4)
-#define PARPORT_CTRL_BIDIR_ENA	(1 << 5)
+#define PARPORT_CTRL_IRQ_ENA	BIT(4)
+#define PARPORT_CTRL_BIDIR_ENA	BIT(5)
 
 static int parport_data_reg_insn_bits(struct comedi_device *dev,
 				      struct comedi_subdevice *s,
Signature · 1 line
1.7.10.4