net: ieee802154: cc2520: Fix coding style issues
PATCH 1/1 net: ieee802154: cc2520: Fix coding style issues
This patch solves the coding style issues such as space after , and removes the blank lines
--- drivers/net/ieee802154/cc2520.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/net/ieee802154/cc2520.c +2 -4
@@ -513,7 +513,6 @@ err_tx:return rc; } -static int cc2520_rx (struct cc2520_private *priv) {u8 len =0 , lqi =0 , bytes =1 ;
@@ -551,14 +550,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)u8 rssi;int ret; - ret =cc2520_read_register (priv ,CC2520_RSSISTAT , &status); + ret =cc2520_read_register (priv,CC2520_RSSISTAT , &status);if (ret)return ret;if (status !=RSSI_VALID )return -EINVAL ; - ret =cc2520_read_register (priv ,CC2520_RSSI , &rssi); + ret =cc2520_read_register (priv,CC2520_RSSI , &rssi);if (ret)return ret;
@@ -947,7 +946,6 @@ static int cc2520_probe(struct spi_device *spi)if (ret) goto err_hw_init; -gpio_set_value (pdata->vreg,HIGH );usleep_range (100 ,150 );
Signature · 1 line
1.7.9.5
Hi Mohammad Jamal,
These changes already there in the current bluetooth-next tree.
Quoted 48 lines · Mohammad Jamal
This patch solves the coding style issues such as space after , and removes the blank lines
Signed-off-by Mohammad Jamal <[email protected]>--- drivers/net/ieee802154/cc2520.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/net/ieee802154/cc2520.c +2
-5@@ -513,7 +513,6 @@ err_tx:return rc; } -static int cc2520_rx (struct cc2520_private *priv) {u8 len =0 , lqi =0 , bytes =1 ;@@ -551,14 +550,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)u8 rssi;int ret; - ret =cc2520_read_register (priv ,CC2520_RSSISTAT , &status); + ret =cc2520_read_register (priv,CC2520_RSSISTAT , &status);if (ret)return ret;if (status !=RSSI_VALID )return -EINVAL ; - ret =cc2520_read_register (priv ,CC2520_RSSI , &rssi); + ret =cc2520_read_register (priv,CC2520_RSSI , &rssi);if (ret)return ret;@@ -947,7 +946,6 @@ static int cc2520_probe(struct spi_device *spi)if (ret) goto err_hw_init; -gpio_set_value (pdata->vreg,HIGH );usleep_range (100 ,150 ); --1.7.9.5
Signature · 2 lines
Thanks and Regards, Varka Bhadram.
Hello.
Quoted 1 line · Mohammad Jamal
This patch solves the coding style issues such as space after ,
s/after/before/?
Quoted 1 line
and removes the blank lines
Extra blank lines, you mean?
Quoted 9 lines
Signed-off-by Mohammad Jamal <[email protected]>--- drivers/net/ieee802154/cc2520.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/net/ieee802154/cc2520.c +0
-0
[...]
Quoted 4 lines
drivers/net/ieee802154/cc2520.c +0
-0@@ -551,14 +550,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)u8 rssi;int ret;
drivers/net/ieee802154/cc2520.c cc2520_ed(struct ieee802154_hw *hw, u8 *level) · line 560
Quoted 10 lines
drivers/net/ieee802154/cc2520.c +2
-2- ret =cc2520_read_register (priv ,CC2520_RSSISTAT , &status); + ret =cc2520_read_register (priv,CC2520_RSSISTAT , &status);if (ret)return ret;if (status !=RSSI_VALID )return -EINVAL ; - ret =cc2520_read_register (priv ,CC2520_RSSI , &rssi); + ret =cc2520_read_register (priv,CC2520_RSSI , &rssi);
[...]
WBR, Sergei
Quoted 40 lines · Sergei Shtylyov
Hello.
Quoted 1 line · Mohammad Jamal
This patch solves the coding style issues such as space after ,
s/after/before/?
Quoted 1 line
and removes the blank lines
Extra blank lines, you mean?
Quoted 11 lines
Signed-off-by Mohammad Jamal <[email protected]>--- drivers/net/ieee802154/cc2520.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/net/ieee802154/cc2520.c +0
-0[...]
Quoted 13 lines
drivers/net/ieee802154/cc2520.c +1
-1@@ -551,14 +550,14 @@ cc2520_ed(struct ieee802154_hw *hw, u8 *level)u8 rssi;int ret; - ret =cc2520_read_register (priv ,CC2520_RSSISTAT , &status); + ret =cc2520_read_register (priv,CC2520_RSSISTAT , &status);if (ret)return ret;if (status !=RSSI_VALID )return -EINVAL ;
Quoted 7 lines
drivers/net/ieee802154/cc2520.c cc2520_ed(struct ieee802154_hw *hw, u8 *level) · line 560
Quoted 2 lines
drivers/net/ieee802154/cc2520.c +1
-1- ret =cc2520_read_register (priv ,CC2520_RSSI , &rssi); + ret =cc2520_read_register (priv,CC2520_RSSI , &rssi);[...]
WBR, Sergei
Sorry for that,
i actually have cloned and linus torvalds git and when i ran checkpatch.pl i have found some warnings. so this patch was removing those warnings...as bhadram told that these warnings are already removed in bluetooth-next tree...so this patch any how fails....