]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: c6xdigio: Prefer using the BIT macro
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 30 Mar 2016 19:34:53 +0000 (12:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Mar 2016 04:02:44 +0000 (21:02 -0700)
Fix the checkpatch.pl issues.

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/c6xdigio.c

index 1a109e30d8fff7f55d25c0a7a02d72be65d8d010..8ee732571588a5fa0c3772935c67c1fee6908f0a 100644 (file)
@@ -47,8 +47,8 @@
  */
 #define C6XDIGIO_DATA_REG      0x00
 #define C6XDIGIO_DATA_CHAN(x)  (((x) + 1) << 4)
-#define C6XDIGIO_DATA_PWM      (1 << 5)
-#define C6XDIGIO_DATA_ENCODER  (1 << 6)
+#define C6XDIGIO_DATA_PWM      BIT(5)
+#define C6XDIGIO_DATA_ENCODER  BIT(6)
 #define C6XDIGIO_STATUS_REG    0x01
 #define C6XDIGIO_CTRL_REG      0x02