[PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro

Subsystems: cc2520 ieee-802.15.4 radio driver, ieee 802.15.4 subsystem, networking drivers, the rest

STALE4212d

3 messages, 3 authors, 2015-02-02 · open the first message on its own page

[PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro

From: Mohammad Jamal <hidden>
Date: 2015-01-23 14:03:10

This patch replaces the shifting operations by BIT macro

Signed-off-by: Mohammad Jamal <redacted>
---
 drivers/net/ieee802154/cc2520.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 665a3db..181b349 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
-- 
1.7.9.5

Re: [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro

From: Varka Bhadram <hidden>
Date: 2015-01-26 14:04:33

Hi Jamal,

On Friday 23 January 2015 07:28 PM, Mohammad Jamal wrote:
This patch replaces the shifting operations by BIT macro
Thanks for the patch.

Acked-by: Varka Bhadram <redacted>
quoted hunk
Signed-off-by: Mohammad Jamal <redacted>
---
  drivers/net/ieee802154/cc2520.c |    6 +++---
  1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c
index 665a3db..181b349 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
-- 
Thanks and Regards,
Varka Bhadram.

Re: [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro

From: Marcel Holtmann <marcel@holtmann.org>
Date: 2015-02-02 05:11:10

Hi Mohammad,
This patch replaces the shifting operations by BIT macro

Signed-off-by: Mohammad Jamal <redacted>
---
drivers/net/ieee802154/cc2520.c |    6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
patch has been applied to bluetooth-next tree.

Regards

Marcel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help