]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
comedi: comedi_parport: Fix coding style - use BIT macro
authorRanjith Thangavel <ranjithece24@gmail.com>
Wed, 11 Nov 2015 15:54:01 +0000 (21:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 23:55:57 +0000 (15:55 -0800)
BIT macro is used for defining BIT location instead of
shifting operator - coding style issue

Signed-off-by: Ranjith Thangavel <ranjithece24@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/comedi_parport.c

index 15a4093efda13869c0be6be98429ff03fdf5cbd4..1bf8ddc6f07cb6e3155f7e22ed891a352a2b54e5 100644 (file)
@@ -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,