Staging: gdm72xx: Prefer using the BIT macro
authorShraddha Barke <shraddha.6596@gmail.com>
Sat, 26 Dec 2015 21:14:45 +0000 (02:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:10:47 +0000 (20:10 -0800)
Replace bit shifting on 1 with the BIT(x) macro

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_usb.h
drivers/staging/gdm72xx/hci.h

index f128914f8f5442d0914951e3a67e8b9267870ff1..d864928cdf414dbe44c7d458eef6cf4c25a7c3d3 100644 (file)
@@ -18,8 +18,8 @@
 #include <linux/usb.h>
 #include <linux/list.h>
 
-#define B_DIFF_DL_DRV          (1 << 4)
-#define B_DOWNLOAD             (1 << 5)
+#define B_DIFF_DL_DRV          BIT(4)
+#define B_DOWNLOAD             BIT(5)
 #define MAX_NR_SDU_BUF         64
 
 struct usb_tx {
index 03c9f305b56282f762c73f504631525d374aca5f..ab903d427951840185dca84b6202a2c0b3c1f326 100644 (file)
 #define T_DUPLEX_MODE                  (0xdb   | (4 << 16))
 
 /* T_CAPABILITY */
-#define T_CAPABILITY_MULTI_CS          (1 << 0)
-#define T_CAPABILITY_WIMAX             (1 << 1)
-#define T_CAPABILITY_QOS               (1 << 2)
-#define T_CAPABILITY_AGGREGATION       (1 << 3)
+#define T_CAPABILITY_MULTI_CS          BIT(0)
+#define T_CAPABILITY_WIMAX             BIT(1)
+#define T_CAPABILITY_QOS               BIT(2)
+#define T_CAPABILITY_AGGREGATION       BIT(3)
 
 struct hci_s {
        __be16  cmd_evt;