Skip to contentSkip to conversation

staging: vt6655: line over 80 characters

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

v1 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 staging: vt6655: line over 80 characters

Move function arguments thet go over 80 characters a line limit to a new line to get rid of checkpatch warning.

---
 drivers/staging/vt6655/rf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/vt6655/rf.c +6 -3
index fd09b9771cf5..8d1caa4b19e8 100644
@@ -737,7 +737,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
 		return false;
 	}
 
-	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD(bySleepCount, byInitCount));
+	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD
+			(bySleepCount, byInitCount));
 
 	return true;
 }
@@ -933,7 +934,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 	 * register
 	 * Channel Index 1~14
 	 */
-	if ((byOldChannel <= CB_MAX_CHANNEL_24G) && (byNewChannel > CB_MAX_CHANNEL_24G)) {
+	if ((byOldChannel <= CB_MAX_CHANNEL_24G) &&
+	    (byNewChannel > CB_MAX_CHANNEL_24G)) {
 		/* Change from 2.4G to 5G [Reg] */
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[2]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[3]);
@@ -942,7 +944,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[10]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[12]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[15]);
-	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) && (byNewChannel <= CB_MAX_CHANNEL_24G)) {
+	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) &&
+			(byNewChannel <= CB_MAX_CHANNEL_24G)) {
 		/* Change from 5G to 2.4G [Reg] */
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[2]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTable[3]);
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 13 lines · Vatsala Narang

Move function arguments thet go over 80 characters a line limit to a new line to get rid of checkpatch warning.

---
 drivers/staging/vt6655/rf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/vt6655/rf.c +0 -0
index fd09b9771cf5..8d1caa4b19e8 100644

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

Quoted 6 lines
drivers/staging/vt6655/rf.c +2 -1
@@ -737,7 +737,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
 		return false;
 	}
 
-	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD(bySleepCount, byInitCount));
+	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD
+			(bySleepCount, byInitCount));

This should go one character to the left, to line up with the "priv" above it.

drivers/staging/vt6655/rf.c bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, · line 938

Quoted 10 lines
drivers/staging/vt6655/rf.c +2 -1
 	return true;
 }
@@ -933,7 +934,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 	 * register
 	 * Channel Index 1~14
 	 */
-	if ((byOldChannel <= CB_MAX_CHANNEL_24G) && (byNewChannel > CB_MAX_CHANNEL_24G)) {
+	if ((byOldChannel <= CB_MAX_CHANNEL_24G) &&
+	    (byNewChannel > CB_MAX_CHANNEL_24G)) {

This is good.

drivers/staging/vt6655/rf.c bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, · line 948

Quoted 10 lines
drivers/staging/vt6655/rf.c +2 -1
 		/* Change from 2.4G to 5G [Reg] */
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[2]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[3]);
@@ -942,7 +944,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[10]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[12]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[15]);
-	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) && (byNewChannel <= CB_MAX_CHANNEL_24G)) {
+	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) &&
+			(byNewChannel <= CB_MAX_CHANNEL_24G)) {

This needs to line up like the other one does.

thanks,

greg k-h

#2 lore raw
Quoted 17 lines · Greg KH
Quoted 16 lines · Vatsala Narang

Move function arguments thet go over 80 characters a line limit to a new line to get rid of checkpatch warning.

---
 drivers/staging/vt6655/rf.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/staging/vt6655/rf.c +0 -0
index fd09b9771cf5..8d1caa4b19e8 100644
@@ -737,7 +737,8 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
 		return false;
 	}
 
Quoted 6 lines

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

Quoted 3 lines
drivers/staging/vt6655/rf.c +2 -1
-	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD(bySleepCount, byInitCount));
+	MACvSetMISCFifo(priv, MISCFIFO_SYNINFO_IDX, (unsigned long)MAKEWORD
+			(bySleepCount, byInitCount));

This should go one character to the left, to line up with the "priv" above it.

Actually, this one breaks up a function (or macro) call and its arguments, It would be better to put the newline after the previous , instead. The indentation looks ok, in the patch at least.

julia

Quoted 38 lines

drivers/staging/vt6655/rf.c bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, · line 938

Quoted 11 lines
drivers/staging/vt6655/rf.c +2 -1
 	return true;
 }
@@ -933,7 +934,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 	 * register
 	 * Channel Index 1~14
 	 */
-	if ((byOldChannel <= CB_MAX_CHANNEL_24G) && (byNewChannel > CB_MAX_CHANNEL_24G)) {
+	if ((byOldChannel <= CB_MAX_CHANNEL_24G) &&
+	    (byNewChannel > CB_MAX_CHANNEL_24G)) {

This is good.

drivers/staging/vt6655/rf.c bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, · line 948

Quoted 10 lines
drivers/staging/vt6655/rf.c +2 -1
 		/* Change from 2.4G to 5G [Reg] */
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[2]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[3]);
@@ -942,7 +944,8 @@ bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv,
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[10]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[12]);
 		ret &= IFRFbWriteEmbedded(priv, dwAL7230InitTableAMode[15]);
-	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) && (byNewChannel <= CB_MAX_CHANNEL_24G)) {
+	} else if ((byOldChannel > CB_MAX_CHANNEL_24G) &&
+			(byNewChannel <= CB_MAX_CHANNEL_24G)) {

This needs to line up like the other one does.

thanks,

greg k-h

--
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/20190322141421.GA25959%40kroah.com.
For more options, visit https://groups.google.com/d/optout.

#3 lore raw
In reply to Greg KH
Quoted 5 lines
Quoted 4 lines

- } else if ((byOldChannel > CB_MAX_CHANNEL_24G) && (byNewChannel

<= CB_MAX_CHANNEL_24G)) {

Quoted 9 lines

drivers/staging/vt6655/rf.c bool RFbAL7230SelectChannelPostProcess(struct vnt_private *priv, · line 948

Quoted 2 lines
drivers/staging/vt6655/rf.c +2 -0
+        } else if ((byOldChannel > CB_MAX_CHANNEL_24G) && 
+                        (byNewChannel <= CB_MAX_CHANNEL_24G)) { 

This needs to line up like the other one does.

thanks,

greg k-h

okay I will add these changes in v2
thanks,
Vatsala