Skip to contentSkip to conversation

v2 [Outreachy kernel] staging: vt6655: spaces around operators

PATCH Superseded Payal Kshirsagar 2 participants 3 messages Mar 21, 2019 Staging

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 v2 [Outreachy kernel] staging: vt6655: spaces around operators

Add spaces around operators

---
 drivers/staging/vt6655/device_main.c |  2 +-
 drivers/staging/vt6655/rf.c          | 26 ++++++++++++--------------
 2 files changed, 13 insertions(+), 15 deletions(-)
drivers/staging/vt6655/device_main.c +1 -1
index b370985..866d794 100644
@@ -592,7 +592,7 @@ static int device_init_rd1_ring(struct vnt_private *priv)
 			goto err_free_rd;
 		}
 
-		desc->next = &priv->aRD1Ring[(i+1) % priv->opts.rx_descs1];
+		desc->next = &priv->aRD1Ring[(i + 1) % priv->opts.rx_descs1];
 		desc->next_desc = cpu_to_le32(curr + sizeof(struct vnt_rx_desc));
 	}
 
drivers/staging/vt6655/rf.c +12 -14
index fd09b97..444751a 100644
@@ -723,11 +723,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:
@@ -755,11 +761,7 @@ 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;
@@ -893,12 +895,8 @@ bool RFbRawSetPower(
  * Return Value: none
  *
  */
-void
-RFvRSSITodBm(
-	struct vnt_private *priv,
-	unsigned char byCurrRSSI,
-	long *pldBm
-	)
+void RFvRSSITodBm(struct vnt_private *priv, unsigned char byCurrRSSI,
+		  long *pldBm)
 {
 	unsigned char byIdx = (((byCurrRSSI & 0xC0) >> 6) & 0x03);
 	long b = (byCurrRSSI & 0x3F);
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 7 lines · Payal Kshirsagar

Add spaces around operators

---
 drivers/staging/vt6655/device_main.c |  2 +-
 drivers/staging/vt6655/rf.c          | 26 ++++++++++++--------------
 2 files changed, 13 insertions(+), 15 deletions(-)

What changed from v1?

Always put that below the --- line.

Please fix up and send a v3.

thanks,

greg k-h

#2 lore raw
Quoted 9 lines · Greg KH
Quoted 7 lines · Payal Kshirsagar

Add spaces around operators

---
 drivers/staging/vt6655/device_main.c |  2 +-
 drivers/staging/vt6655/rf.c          | 26 ++++++++++++--------------
 2 files changed, 13 insertions(+), 15 deletions(-)
Quoted 6 lines

What changed from v1?

Always put that below the --- line.

Please fix up and send a v3.

Okay, i will resend v3 by mentioning the change.
thanks!
payal

Quoted 4 lines

thanks,

greg k-h