Skip to contentSkip to conversation

staging: vt6655: Type encoding info dropped from names

PATCH Superseded Pavan Bobba 2 participants 2 messages Sep 1, 2023 Staging

v1 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6655: Type encoding info dropped from names

1.conversion of formal argument names from camel case to snake case
for below functions:

a.SROMvReadAllContents
b.SROMvReadEtherAddress

2.conversion of local variable names from camel case to snake case
in function SROMvReadEtherAddress

3.all instances of W_MAX_TIMEOUT replaced with MAX_TIMEOUT

Issue found by checkpatch

---
 drivers/staging/vt6655/baseband.c | 12 ++++----
 drivers/staging/vt6655/card.c     |  4 +--
 drivers/staging/vt6655/mac.c      | 46 ++++++++++++++---------------
 drivers/staging/vt6655/mac.h      |  2 +-
 drivers/staging/vt6655/rf.c       |  6 ++--
 drivers/staging/vt6655/srom.c     | 48 +++++++++++++++----------------
 6 files changed, 59 insertions(+), 59 deletions(-)
drivers/staging/vt6655/baseband.c +6 -6
index 696d4dd03aa2..2721698086df 100644
@@ -1913,8 +1913,8 @@ bool bb_read_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
 
 	/* turn on REGR */
 	vt6655_mac_reg_bits_on(iobase, MAC_REG_BBREGCTL, BBREGCTL_REGR);
-	/* W_MAX_TIMEOUT is the timeout period */
-	for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
+	/* MAX_TIMEOUT is the timeout period */
+	for (ww = 0; ww < MAX_TIMEOUT; ww++) {
 		by_value = ioread8(iobase + MAC_REG_BBREGCTL);
 		if (by_value & BBREGCTL_DONE)
 			break;
@@ -1923,7 +1923,7 @@ bool bb_read_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
 	/* get BB data */
 	*pby_data = ioread8(iobase + MAC_REG_BBREGDATA);
 
-	if (ww == W_MAX_TIMEOUT) {
+	if (ww == MAX_TIMEOUT) {
 		pr_debug(" DBG_PORT80(0x30)\n");
 		return false;
 	}
@@ -1958,14 +1958,14 @@ bool bb_write_embedded(struct vnt_private *priv, unsigned char by_bb_addr,
 
 	/* turn on BBREGCTL_REGW */
 	vt6655_mac_reg_bits_on(iobase, MAC_REG_BBREGCTL, BBREGCTL_REGW);
-	/* W_MAX_TIMEOUT is the timeout period */
-	for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
+	/* MAX_TIMEOUT is the timeout period */
+	for (ww = 0; ww < MAX_TIMEOUT; ww++) {
 		by_value = ioread8(iobase + MAC_REG_BBREGCTL);
 		if (by_value & BBREGCTL_DONE)
 			break;
 	}
 
-	if (ww == W_MAX_TIMEOUT) {
+	if (ww == MAX_TIMEOUT) {
 		pr_debug(" DBG_PORT80(0x31)\n");
 		return false;
 	}
drivers/staging/vt6655/card.c +2 -2
index c680925b9c92..4830cc8e91bc 100644
@@ -739,12 +739,12 @@ u64 vt6655_get_current_tsf(struct vnt_private *priv)
 	u32 low, high;
 
 	vt6655_mac_reg_bits_on(iobase, MAC_REG_TFTCTL, TFTCTL_TSFCNTRRD);
-	for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
+	for (ww = 0; ww < MAX_TIMEOUT; ww++) {
 		data = ioread8(iobase + MAC_REG_TFTCTL);
 		if (!(data & TFTCTL_TSFCNTRRD))
 			break;
 	}
-	if (ww == W_MAX_TIMEOUT)
+	if (ww == MAX_TIMEOUT)
 		return 0;
 	low = ioread32(iobase + MAC_REG_TSFCNTR);
 	high = ioread32(iobase + MAC_REG_TSFCNTR + 4);
drivers/staging/vt6655/mac.c +23 -23

139 lines not on this page · raw message

drivers/staging/vt6655/mac.h +1 -1
index acf931c3f5fd..dccd11a71e04 100644
@@ -522,7 +522,7 @@
 			    IMR_TXDMA0)
 
 /* max time out delay time */
-#define W_MAX_TIMEOUT       0xFFF0U
+#define MAX_TIMEOUT       0xFFF0U
 
 /* wait time within loop */
 #define CB_DELAY_LOOP_WAIT  10 /* 10ms */
drivers/staging/vt6655/rf.c +3 -3
index 1fadc2fc4412..5a47ea3cabcd 100644
@@ -173,14 +173,14 @@ bool IFRFbWriteEmbedded(struct vnt_private *priv, unsigned long dwData)
 
 	iowrite32((u32)dwData, iobase + MAC_REG_IFREGCTL);
 
-	/* W_MAX_TIMEOUT is the timeout period */
-	for (ww = 0; ww < W_MAX_TIMEOUT; ww++) {
+	/* MAX_TIMEOUT is the timeout period */
+	for (ww = 0; ww < MAX_TIMEOUT; ww++) {
 		dwValue = ioread32(iobase + MAC_REG_IFREGCTL);
 		if (dwValue & IFREGCTL_DONE)
 			break;
 	}
 
-	if (ww == W_MAX_TIMEOUT)
+	if (ww == MAX_TIMEOUT)
 		return false;
 
 	return true;
drivers/staging/vt6655/srom.c +24 -24

99 lines not on this page · raw message

Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 14 lines · Pavan Bobba

1.conversion of formal argument names from camel case to snake case
for below functions:

a.SROMvReadAllContents
b.SROMvReadEtherAddress

2.conversion of local variable names from camel case to snake case
in function SROMvReadEtherAddress

3.all instances of W_MAX_TIMEOUT replaced with MAX_TIMEOUT

Issue found by checkpatch

Quoted 9 lines
---
 drivers/staging/vt6655/baseband.c | 12 ++++----
 drivers/staging/vt6655/card.c     |  4 +--
 drivers/staging/vt6655/mac.c      | 46 ++++++++++++++---------------
 drivers/staging/vt6655/mac.h      |  2 +-
 drivers/staging/vt6655/rf.c       |  6 ++--
 drivers/staging/vt6655/srom.c     | 48 +++++++++++++++----------------
 6 files changed, 59 insertions(+), 59 deletions(-)

Hi,

This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree.

You are receiving this message because of the following common error(s) as indicated below:

- Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause.

- You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what is needed in order to properly describe the change.

- You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/process/submitting-patches.rst for what a proper
Subject: line should look like.

If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers.

thanks,

greg k-h's patch email bot