* [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro
@ 2015-01-23 13:58 Mohammad Jamal
2015-01-26 14:04 ` Varka Bhadram
2015-02-02 5:10 ` Marcel Holtmann
0 siblings, 2 replies; 3+ messages in thread
From: Mohammad Jamal @ 2015-01-23 13:58 UTC (permalink / raw)
To: varkabhadram, alex.aring, linux-wpan, netdev, linux-kernel; +Cc: Mohammad Jamal
This patch replaces the shifting operations by BIT macro
Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro
2015-01-23 13:58 [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro Mohammad Jamal
@ 2015-01-26 14:04 ` Varka Bhadram
2015-02-02 5:10 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Varka Bhadram @ 2015-01-26 14:04 UTC (permalink / raw)
To: Mohammad Jamal, alex.aring, linux-wpan, netdev, linux-kernel
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 <varkabhadram@gmail.com>
> Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com>
> ---
> 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro
2015-01-23 13:58 [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro Mohammad Jamal
2015-01-26 14:04 ` Varka Bhadram
@ 2015-02-02 5:10 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2015-02-02 5:10 UTC (permalink / raw)
To: Mohammad Jamal; +Cc: varkabhadram, alex.aring, linux-wpan, netdev, linux-kernel
Hi Mohammad,
> This patch replaces the shifting operations by BIT macro
>
> Signed-off-by: Mohammad Jamal <md.jamalmohiuddin@gmail.com>
> ---
> drivers/net/ieee802154/cc2520.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
patch has been applied to bluetooth-next tree.
Regards
Marcel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-02 5:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-23 13:58 [PATCH bluetooth-next] ieee802154: cc2520: Replace shift operations by BIT macro Mohammad Jamal
2015-01-26 14:04 ` Varka Bhadram
2015-02-02 5:10 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).