]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: addi_apci_3xxx: prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 9 Oct 2015 17:58:55 +0000 (10:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Oct 2015 04:26:38 +0000 (21:26 -0700)
As suggested by checkpatch.pl, use the BIT macro to define the
register bits.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_3xxx.c

index bef6efc84efde1c9a83596a7eaa48fc584e09ea8..995096c78844f3a8199145251b05dfdc8695bab9 100644 (file)
@@ -27,9 +27,9 @@
 
 #include "../comedi_pci.h"
 
-#define CONV_UNIT_NS           (1 << 0)
-#define CONV_UNIT_US           (1 << 1)
-#define CONV_UNIT_MS           (1 << 2)
+#define CONV_UNIT_NS           BIT(0)
+#define CONV_UNIT_US           BIT(1)
+#define CONV_UNIT_MS           BIT(2)
 
 static const struct comedi_lrange apci3xxx_ai_range = {
        8, {