Skip to contentSkip to conversation

staging: vt6655: lines should not end with a parentheses

PATCH Superseded Vatsala Narang 2 participants 3 messages Mar 21, 2019 – Mar 22, 2019 Staging

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 staging: vt6655: lines should not end with a parentheses

Adjust code to fix the style issue-lines should not end with a parentheses

---
 drivers/staging/vt6655/rf.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/staging/vt6655/rf.c +4 -9
index 6b8a69df509d..e61051076d87 100644
@@ -756,11 +756,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
  * Return Value: true if succeeded; false if failed.
  *
  */
-bool RFbSetPower(
-	struct vnt_private *priv,
-	unsigned int rate,
-	u16 uCH
-)
+bool RFbSetPower(struct vnt_private *priv, unsigned int rate,
+		 u16 uCH)
 {
 	bool ret = true;
 	unsigned char byPwr = 0;
@@ -895,10 +892,8 @@ bool RFbRawSetPower(
  *
  */
 void
-RFvRSSITodBm(
-	struct vnt_private *priv,
-	unsigned char byCurrRSSI,
-	long *pldBm
+RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,
+	     long *pldBm
 	)
 {
 	unsigned char byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03);
Signature · 1 line
2.17.1
#1 lore raw
Quoted 13 lines · Vatsala Narang

Adjust code to fix the style issue-lines should not end with a parentheses

---
 drivers/staging/vt6655/rf.c | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)
drivers/staging/vt6655/rf.c +0 -0
index 6b8a69df509d..e61051076d87 100644

drivers/staging/vt6655/rf.c bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, · line 760

Quoted 10 lines
drivers/staging/vt6655/rf.c +2 -5
@@ -756,11 +756,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
  * Return Value: true if succeeded; false if failed.
  *
  */
-bool RFbSetPower(
-	struct vnt_private *priv,
-	unsigned int rate,
-	u16 uCH
-)
+bool RFbSetPower(struct vnt_private *priv, unsigned int rate,
+		 u16 uCH)

You can put the whol thing on one line.

Quoted 4 lines
drivers/staging/vt6655/rf.c +0 -0
 {
 	bool ret = true;
 	unsigned char byPwr = 0;

drivers/staging/vt6655/rf.c bool RFbRawSetPower( · line 897

Quoted 10 lines
drivers/staging/vt6655/rf.c +2 -4
@@ -895,10 +892,8 @@ bool RFbRawSetPower(
  *
  */
 void
-RFvRSSITodBm(
-	struct vnt_private *priv,
-	unsigned char byCurrRSSI,
-	long *pldBm
+RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,
+	     long *pldBm
 	)

Perhaps here too. In any case the ) on a line by itself is not nice at all.

If it doesn't fit on one line, them it looks like pldBm could be just dBm. The pl seems to represent "pointer long". If you need to do that, then you could make a series with that change first.

julia

Quoted 12 lines
drivers/staging/vt6655/rf.c +0 -1
 {
 	unsigned char byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03);
--

2.17.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190321214056.15963-1-vatsalanarang%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
Quoted 13 lines

-bool RFbSetPower(

drivers/staging/vt6655/rf.c bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType, · line 760

Quoted 6 lines
drivers/staging/vt6655/rf.c +2 -4
-        struct vnt_private *priv, 
-        unsigned int rate, 
-        u16 uCH 
-) 
+bool RFbSetPower(struct vnt_private *priv, unsigned int rate, 
+                 u16 uCH) 

You can put the whol thing on one line.

Quoted 1 line

okay I will add this change in v2

thanks,
Vatsala