net: ieee802154: cc2520: fix coding style issue
PATCH 1/1 net: ieee802154: cc2520: fix coding style issue
This patch solves the coding style issue warning
by replacing the shifting operations by BIT macro
--- drivers/net/ieee802154/cc2520.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/net/ieee802154/cc2520.c +3 -3
@@ -45,9 +45,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
Signature · 1 line
1.7.9.5
Hi Mohammad Jamal,
Quoted 26 lines · Mohammad Jamal
This patch solves the coding style issue warning
by replacing the shifting operations by BIT macroSigned-off-by Mohammad Jamal <[email protected]>--- drivers/net/ieee802154/cc2520.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/net/ieee802154/cc2520.c +3
-4@@ -45,9 +45,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 --
Quoted 2 lines
1.7.9.5
Please work on bluetooth-next[1] tree and also include 'bluetooth-next' tag for the patch.
[1]: http://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/
Signature · 2 lines
Thanks and Regards, Varka Bhadram.
Quoted 36 lines · Varka Bhadram
Hi Mohammad Jamal,
Quoted 26 lines · Mohammad Jamal
This patch solves the coding style issue warning
by replacing the shifting operations by BIT macroSigned-off-by Mohammad Jamal <[email protected]>--- drivers/net/ieee802154/cc2520.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/net/ieee802154/cc2520.c +3
-4@@ -45,9 +45,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 --Quoted 2 lines
1.7.9.5
Please work on bluetooth-next[1] tree and also include 'bluetooth-next' tag for the patch.
Quoted 5 lines
[1]: http://git.kernel.org/cgit/linux/kernel/git/bluetooth/bluetooth-next.git/
--
Thanks and Regards,
Varka Bhadram.
OK , i will send u the patch once i clone the bluetooth-next tree.