staging: xgifb: prefer using the BIT macro
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Thu, 9 Jul 2015 06:05:09 +0000 (06:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Jul 2015 02:55:31 +0000 (19:55 -0700)
This patch uses the  BIT macro for bit shift operation.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xgifb/XGI_main_26.c

index 943d463cf1931c5519fd4b403cb840e864c02020..5bfe151ea3287b4f5fa497ab6211aa6f0c1802ef 100644 (file)
@@ -18,8 +18,8 @@
 #define Index_CR_GPIO_Reg1 0x48
 #define Index_CR_GPIO_Reg3 0x4a
 
-#define GPIOG_EN    (1<<6)
-#define GPIOG_READ  (1<<1)
+#define GPIOG_EN    BIT(6)
+#define GPIOG_READ  BIT(1)
 
 static char *forcecrt2type;
 static char *mode;