staging: vt6655: Type encoding info dropped from names
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
@@ -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
@@ -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
@@ -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
@@ -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
Greg KH
maintainerQuoted 14 lines · Pavan Bobba
1.conversion of formal argument names from camel case to snake case
for below functions:a.SROMvReadAllContents
b.SROMvReadEtherAddress2.conversion of local variable names from camel case to snake case
in function SROMvReadEtherAddress3.all instances of
W_MAX_TIMEOUTreplaced withMAX_TIMEOUTIssue found by checkpatch
Signed-off-by Pavan Bobba <[email protected]>
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