summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMohammad Jamal <md.jamalmohiuddin@gmail.com>2015-01-23 19:28:29 +0530
committerMarcel Holtmann <marcel@holtmann.org>2015-02-02 06:07:47 +0100
commit908edc5461565597bfc083c68088b780888e55b0 (patch)
treec6d14ceaeaf8c87ec9222b8e195b0b481d3aba3a /drivers/net
parentbf21d7931a5d33ef79b805074e3d23d3009bff98 (diff)
downloadlinux-908edc5461565597bfc083c68088b780888e55b0.tar.bz2
ieee802154: cc2520: Replace shift operations by BIT macro
This patch replaces the shifting operations by BIT macro Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com> Acked-by: Varka Bhadram <varkabhadram@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ieee802154/cc2520.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index a43c8acb7268..b38656732ff7 100644
--- a/drivers/net/ieee802154/cc2520.c
+++ b/drivers/net/ieee802154/cc2520.c
@@ -44,9 +44,9 @@
#define CC2520_FREG_MASK 0x3F
/* status byte values */
-#define CC2520_STATUS_XOSC32M_STABLE (1 << 7)
-#define CC2520_STATUS_RSSI_VALID (1 << 6)
-#define CC2520_STATUS_TX_UNDERFLOW (1 << 3)
+#define CC2520_STATUS_XOSC32M_STABLE BIT(7)
+#define CC2520_STATUS_RSSI_VALID BIT(6)
+#define CC2520_STATUS_TX_UNDERFLOW BIT(3)
/* IEEE-802.15.4 defined constants (2.4 GHz logical channels) */
#define CC2520_MINCHANNEL 11