Skip to contentSkip to conversation

staging: vt6655: line over 80 characters

PATCH Superseded Vatsala Narang 3 participants 7 messages Mar 22, 2019 – Mar 29, 2019 Staging

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

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

Align function to prevent it from going over 80 character a line to get rid of checkpatch warning.

---
changes in v4:
-corrected the alignment

changes in v3:
-to cut line at commas

changes in v2:
-corrected identation issue
-aligned the lines from patch 3/3 that are over 80 character

 drivers/staging/vt6655/rf.c | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)
drivers/staging/vt6655/rf.c +21 -8
index fd09b9771cf5..d0581b2ff72c 100644
@@ -702,9 +702,13 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
 		for (ii = 0; ii < CB_AL2230_INIT_SEQ; ii++)
 			MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL2230InitTable[ii]);
 
-		MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL2230ChannelTable0[uChannel-1]);
+		MACvSetMISCFifo(priv,
+				(unsigned short)(MISCFIFO_SYNDATA_IDX + ii),
+				dwAL2230ChannelTable0[uChannel-1]);
 		ii++;
-		MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL2230ChannelTable1[uChannel-1]);
+		MACvSetMISCFifo(priv,
+				(unsigned short)(MISCFIFO_SYNDATA_IDX + ii),
+				dwAL2230ChannelTable1[uChannel-1]);
 		break;
 
 		/* Need to check, PLLON need to be low for channel setting */
@@ -723,11 +727,17 @@ bool RFvWriteWakeProgSyn(struct vnt_private *priv, unsigned char byRFType,
 				MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL7230InitTableAMode[ii]);
 		}
 
-		MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL7230ChannelTable0[uChannel-1]);
+		MACvSetMISCFifo(priv,
+				(unsigned short)(MISCFIFO_SYNDATA_IDX + ii),
+				dwAL7230ChannelTable0[uChannel-1]);
 		ii++;
-		MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL7230ChannelTable1[uChannel-1]);
+		MACvSetMISCFifo(priv,
+				(unsigned short)(MISCFIFO_SYNDATA_IDX + ii),
+				dwAL7230ChannelTable1[uChannel-1]);
 		ii++;
-		MACvSetMISCFifo(priv, (unsigned short)(MISCFIFO_SYNDATA_IDX + ii), dwAL7230ChannelTable2[uChannel-1]);
+		MACvSetMISCFifo(priv,
+				(unsigned short)(MISCFIFO_SYNDATA_IDX + ii),
+				dwAL7230ChannelTable2[uChannel-1]);
 		break;
 
 	case RF_NOTHING:
@@ -737,7 +747,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 +944,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 +954,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 7 lines · Vatsala Narang

Align function to prevent it from going over 80 character a line to get rid of checkpatch warning.

---
changes in v4:
-corrected the alignment

<snip>

I have an odd collection of patches from you here, some with "v4" and some with "v2", and none of them actually threaded and connected to each other, so I have no idea what to do.

When you "version" a patch as part of a patch series, you need to resend the whole series together, not send them individually, as it is very difficult to understand.

So, please resend your whole patch series for this driver, properly versioned with the _same_ version number (v5 now), so that I can have a chance to figure it out :)

thanks,

greg k-h

#2 lore raw
Quoted 14 lines

changes in v4:

Quoted 1 line

-corrected the alignment

<snip>

I have an odd collection of patches from you here, some with "v4" and some with "v2", and none of them actually threaded and connected to each other, so I have no idea what to do.

When you "version" a patch as part of a patch series, you need to resend the whole series together, not send them individually, as it is very difficult to understand.

Quoted 8 lines

So, please resend your whole patch series for this driver, properly versioned with the _same_ version number (v5 now), so that I can have a chance to figure it out :)

thanks,

greg k-h

sorry for inconvenience,I will send the patches in v5 again Thanks,
Vatsala

#3 lore raw
In reply to Greg KH

For two patches in this patchset(2/3 and 3/3) i got the acceptance mail but for patch 1/3 I haven't recieved any mail ,So should i resend the whole patchset ?
thanks,
Vatsala

#4 lore raw
Quoted 3 lines · Vatsala Narang

For two patches in this patchset(2/3 and 3/3) i got the acceptance mail but for patch 1/3 I haven't recieved any mail ,So should i resend the whole patchset ?

No. Once a patch is in Greg's tree, he doesn't need to receive it again.

julia

Quoted 14 lines

thanks,
Vatsala

--
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/969520ee-c1dc-43ca-a091- ef619f6dd2bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

maintainer
#5 lore raw
In reply to Vatsala Narang
Quoted 3 lines · Vatsala Narang

For two patches in this patchset(2/3 and 3/3) i got the acceptance mail but for patch 1/3 I haven't recieved any mail ,So should i resend the whole patchset ?

There must have been a problem with patch 1, so just fix that up and resend it.

thanks,

greg k-h

#6 lore raw

Okay ,I will rebase and resend it in again.
thanks,
Vatsala