* [PATCH v2] staging: vt6655: replace camel case by snake case
@ 2023-08-03 15:27 Pavan Bobba
2023-08-03 15:34 ` Greg Kroah-Hartman
2023-08-04 13:23 ` Greg Kroah-Hartman
0 siblings, 2 replies; 15+ messages in thread
From: Pavan Bobba @ 2023-08-03 15:27 UTC (permalink / raw)
To: Forest Bond, Greg Kroah-Hartman, Michael Straube,
Philipp Hortmann, outreachy
Cc: inux-staging, linux-kernel
Replace array name of camel case by snake case. Issue found
by checkpatch
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
drivers/staging/vt6655/baseband.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index 0e135af8316b..8b913c64845c 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
};
#define CB_VT3253B0_INIT_FOR_RFMD 256
-static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
+static const unsigned char byvt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
{0x00, 0x31},
{0x01, 0x00},
{0x02, 0x00},
@@ -2005,8 +2005,8 @@ bool bb_vt3253_init(struct vnt_private *priv)
} else {
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++)
result &= bb_write_embedded(priv,
- byVT3253B0_RFMD[ii][0],
- byVT3253B0_RFMD[ii][1]);
+ byvt3253b0_rfmd[ii][0],
+ byvt3253b0_rfmd[ii][1]);
for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++)
result &= bb_write_embedded(priv,
--
2.34.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-03 15:27 Pavan Bobba
@ 2023-08-03 15:34 ` Greg Kroah-Hartman
2023-08-04 13:23 ` Greg Kroah-Hartman
1 sibling, 0 replies; 15+ messages in thread
From: Greg Kroah-Hartman @ 2023-08-03 15:34 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
inux-staging, linux-kernel
On Thu, Aug 03, 2023 at 08:57:31PM +0530, Pavan Bobba wrote:
> Replace array name of camel case by snake case. Issue found
> by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> drivers/staging/vt6655/baseband.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> index 0e135af8316b..8b913c64845c 100644
> --- a/drivers/staging/vt6655/baseband.c
> +++ b/drivers/staging/vt6655/baseband.c
> @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> };
>
> #define CB_VT3253B0_INIT_FOR_RFMD 256
> -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> +static const unsigned char byvt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> {0x00, 0x31},
> {0x01, 0x00},
> {0x02, 0x00},
> @@ -2005,8 +2005,8 @@ bool bb_vt3253_init(struct vnt_private *priv)
> } else {
> for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++)
> result &= bb_write_embedded(priv,
> - byVT3253B0_RFMD[ii][0],
> - byVT3253B0_RFMD[ii][1]);
> + byvt3253b0_rfmd[ii][0],
> + byvt3253b0_rfmd[ii][1]);
>
> for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++)
> result &= bb_write_embedded(priv,
> --
> 2.34.1
>
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:
- This looks like a new version of a previously submitted patch, but you
did not list below the --- line any changes from the previous version.
Please read the section entitled "The canonical patch format" in the
kernel file, Documentation/process/submitting-patches.rst for what
needs to be done here to properly describe this.
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-03 15:27 Pavan Bobba
2023-08-03 15:34 ` Greg Kroah-Hartman
@ 2023-08-04 13:23 ` Greg Kroah-Hartman
1 sibling, 0 replies; 15+ messages in thread
From: Greg Kroah-Hartman @ 2023-08-04 13:23 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
inux-staging, linux-kernel
On Thu, Aug 03, 2023 at 08:57:31PM +0530, Pavan Bobba wrote:
> Replace array name of camel case by snake case. Issue found
> by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> drivers/staging/vt6655/baseband.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> index 0e135af8316b..8b913c64845c 100644
> --- a/drivers/staging/vt6655/baseband.c
> +++ b/drivers/staging/vt6655/baseband.c
> @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> };
>
> #define CB_VT3253B0_INIT_FOR_RFMD 256
> -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> +static const unsigned char byvt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> {0x00, 0x31},
> {0x01, 0x00},
> {0x02, 0x00},
> @@ -2005,8 +2005,8 @@ bool bb_vt3253_init(struct vnt_private *priv)
> } else {
> for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++)
> result &= bb_write_embedded(priv,
> - byVT3253B0_RFMD[ii][0],
> - byVT3253B0_RFMD[ii][1]);
> + byvt3253b0_rfmd[ii][0],
> + byvt3253b0_rfmd[ii][1]);
>
> for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++)
> result &= bb_write_embedded(priv,
> --
> 2.34.1
>
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:
- This looks like a new version of a previously submitted patch, but you
did not list below the --- line any changes from the previous version.
Please read the section entitled "The canonical patch format" in the
kernel file, Documentation/process/submitting-patches.rst for what
needs to be done here to properly describe this.
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
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2] staging: vt6655: replace camel case by snake case
@ 2023-08-05 8:59 Pavan Bobba
2023-08-05 16:30 ` Dan Carpenter
2023-08-09 12:20 ` Greg KH
0 siblings, 2 replies; 15+ messages in thread
From: Pavan Bobba @ 2023-08-05 8:59 UTC (permalink / raw)
To: Forest Bond, Michael Straube, Philipp Hortmann, outreachy
Cc: linux-staging, linux-kernel
Replace array name of camel case by snake case. Issue found
by checkpatch
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
v1 -> v2: 1.character '_' added in the array name "byvt3253b0_rfmde"
2. typo in the subject line "small case" corrected with the
proper word "snake case"
drivers/staging/vt6655/baseband.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index 0e135af8316b..8b913c64845c 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
};
#define CB_VT3253B0_INIT_FOR_RFMD 256
-static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
+static const unsigned char byvt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
{0x00, 0x31},
{0x01, 0x00},
{0x02, 0x00},
@@ -2005,8 +2005,8 @@ bool bb_vt3253_init(struct vnt_private *priv)
} else {
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++)
result &= bb_write_embedded(priv,
- byVT3253B0_RFMD[ii][0],
- byVT3253B0_RFMD[ii][1]);
+ byvt3253b0_rfmd[ii][0],
+ byvt3253b0_rfmd[ii][1]);
for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++)
result &= bb_write_embedded(priv,
--
2.34.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-05 8:59 [PATCH v2] staging: vt6655: replace camel case by snake case Pavan Bobba
@ 2023-08-05 16:30 ` Dan Carpenter
2023-08-09 12:20 ` Greg KH
1 sibling, 0 replies; 15+ messages in thread
From: Dan Carpenter @ 2023-08-05 16:30 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Sat, Aug 05, 2023 at 02:29:04PM +0530, Pavan Bobba wrote:
> Replace array name of camel case by snake case. Issue found
> by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> v1 -> v2: 1.character '_' added in the array name "byvt3253b0_rfmde"
You never actually added a _ character. It should be by_vt3253b0_rfmde.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-05 8:59 [PATCH v2] staging: vt6655: replace camel case by snake case Pavan Bobba
2023-08-05 16:30 ` Dan Carpenter
@ 2023-08-09 12:20 ` Greg KH
1 sibling, 0 replies; 15+ messages in thread
From: Greg KH @ 2023-08-09 12:20 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Sat, Aug 05, 2023 at 02:29:04PM +0530, Pavan Bobba wrote:
> Replace array name of camel case by snake case. Issue found
> by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> v1 -> v2: 1.character '_' added in the array name "byvt3253b0_rfmde"
> 2. typo in the subject line "small case" corrected with the
> proper word "snake case"
>
> drivers/staging/vt6655/baseband.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> index 0e135af8316b..8b913c64845c 100644
> --- a/drivers/staging/vt6655/baseband.c
> +++ b/drivers/staging/vt6655/baseband.c
> @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> };
>
> #define CB_VT3253B0_INIT_FOR_RFMD 256
> -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> +static const unsigned char byvt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
The "by" here means "byte", a horrible naming scheme that was popular in
the 1990's when C compilers would not check the types of variables. No
need for that here, this should just be "vt3253b0_rfmd", right?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2] staging: vt6655: replace camel case by snake case
@ 2023-08-09 12:47 Pavan Bobba
2023-08-11 21:27 ` Greg KH
0 siblings, 1 reply; 15+ messages in thread
From: Pavan Bobba @ 2023-08-09 12:47 UTC (permalink / raw)
To: Forest Bond, Michael Straube, Philipp Hortmann, outreachy
Cc: linux-staging, linux-kernel
Replace array name of camel case by snake case. Issue found
by checkpatch
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
v1 -> v2: 1. array name renamed from byVT3253B0_RFMD to by_vt3253b0_rfmd
2. typo in the subject line "small case" corrected with the
proper word "snake case"
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
drivers/staging/vt6655/baseband.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
index 0e135af8316b..cc8793256661 100644
--- a/drivers/staging/vt6655/baseband.c
+++ b/drivers/staging/vt6655/baseband.c
@@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
};
#define CB_VT3253B0_INIT_FOR_RFMD 256
-static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
+static const unsigned char by_vt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
{0x00, 0x31},
{0x01, 0x00},
{0x02, 0x00},
@@ -2005,8 +2005,8 @@ bool bb_vt3253_init(struct vnt_private *priv)
} else {
for (ii = 0; ii < CB_VT3253B0_INIT_FOR_RFMD; ii++)
result &= bb_write_embedded(priv,
- byVT3253B0_RFMD[ii][0],
- byVT3253B0_RFMD[ii][1]);
+ by_vt3253b0_rfmd[ii][0],
+ by_vt3253b0_rfmd[ii][1]);
for (ii = 0; ii < CB_VT3253B0_AGC_FOR_RFMD2959; ii++)
result &= bb_write_embedded(priv,
--
2.34.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-09 12:47 Pavan Bobba
@ 2023-08-11 21:27 ` Greg KH
[not found] ` <ZNfPiQAL3ixA7tjz@ubuntu.myguest.virtualbox.org>
0 siblings, 1 reply; 15+ messages in thread
From: Greg KH @ 2023-08-11 21:27 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Wed, Aug 09, 2023 at 06:17:22PM +0530, Pavan Bobba wrote:
> Replace array name of camel case by snake case. Issue found
> by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> v1 -> v2: 1. array name renamed from byVT3253B0_RFMD to by_vt3253b0_rfmd
> 2. typo in the subject line "small case" corrected with the
> proper word "snake case"
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> drivers/staging/vt6655/baseband.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> index 0e135af8316b..cc8793256661 100644
> --- a/drivers/staging/vt6655/baseband.c
> +++ b/drivers/staging/vt6655/baseband.c
> @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> };
>
> #define CB_VT3253B0_INIT_FOR_RFMD 256
> -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> +static const unsigned char by_vt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
Again, the "by" needs to just be dropped.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
[not found] ` <alpine.DEB.2.22.394.2308122041160.3315@hadrien>
@ 2023-08-14 13:02 ` Pavan Bobba
2023-08-14 15:20 ` Greg KH
0 siblings, 1 reply; 15+ messages in thread
From: Pavan Bobba @ 2023-08-14 13:02 UTC (permalink / raw)
To: Julia Lawall, Forest Bond, Michael Straube, Philipp Hortmann,
outreachy
Cc: linux-staging, linux-kernel
On Sat, Aug 12, 2023 at 08:41:51PM +0200, Julia Lawall wrote:
>
>
> On Sat, 12 Aug 2023, Pavan Bobba wrote:
>
> > On Fri, Aug 11, 2023 at 11:27:10PM +0200, Greg KH wrote:
> > > On Wed, Aug 09, 2023 at 06:17:22PM +0530, Pavan Bobba wrote:
> > > > Replace array name of camel case by snake case. Issue found
> > > > by checkpatch
> > > >
> > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > ---
> > > > v1 -> v2: 1. array name renamed from byVT3253B0_RFMD to by_vt3253b0_rfmd
> > > > 2. typo in the subject line "small case" corrected with the
> > > > proper word "snake case"
> > > >
> > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > ---
> > > > drivers/staging/vt6655/baseband.c | 6 +++---
> > > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > > >
> > > > diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> > > > index 0e135af8316b..cc8793256661 100644
> > > > --- a/drivers/staging/vt6655/baseband.c
> > > > +++ b/drivers/staging/vt6655/baseband.c
> > > > @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> > > > };
> > > >
> > > > #define CB_VT3253B0_INIT_FOR_RFMD 256
> > > > -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > > > +static const unsigned char by_vt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > >
> > > Again, the "by" needs to just be dropped.
> > >
> > > thanks,
> > >
> > > greg k-h
> >
> > hi greg...did'nt get your comment. can you please provide more elaborate
> > info?
>
> Drop the letter "by_" at the beginning of the function name. It is there
> ot indicate the type, which isn't done in the kernel.
>
> julia
this is'nt a function name but an array name. is in't it fine?
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-14 13:02 ` Pavan Bobba
@ 2023-08-14 15:20 ` Greg KH
2023-08-17 12:08 ` Pavan Bobba
0 siblings, 1 reply; 15+ messages in thread
From: Greg KH @ 2023-08-14 15:20 UTC (permalink / raw)
To: Pavan Bobba
Cc: Julia Lawall, Forest Bond, Michael Straube, Philipp Hortmann,
outreachy, linux-staging, linux-kernel
On Mon, Aug 14, 2023 at 06:32:01PM +0530, Pavan Bobba wrote:
> On Sat, Aug 12, 2023 at 08:41:51PM +0200, Julia Lawall wrote:
> >
> >
> > On Sat, 12 Aug 2023, Pavan Bobba wrote:
> >
> > > On Fri, Aug 11, 2023 at 11:27:10PM +0200, Greg KH wrote:
> > > > On Wed, Aug 09, 2023 at 06:17:22PM +0530, Pavan Bobba wrote:
> > > > > Replace array name of camel case by snake case. Issue found
> > > > > by checkpatch
> > > > >
> > > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > > ---
> > > > > v1 -> v2: 1. array name renamed from byVT3253B0_RFMD to by_vt3253b0_rfmd
> > > > > 2. typo in the subject line "small case" corrected with the
> > > > > proper word "snake case"
> > > > >
> > > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > > ---
> > > > > drivers/staging/vt6655/baseband.c | 6 +++---
> > > > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > > > >
> > > > > diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> > > > > index 0e135af8316b..cc8793256661 100644
> > > > > --- a/drivers/staging/vt6655/baseband.c
> > > > > +++ b/drivers/staging/vt6655/baseband.c
> > > > > @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> > > > > };
> > > > >
> > > > > #define CB_VT3253B0_INIT_FOR_RFMD 256
> > > > > -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > > > > +static const unsigned char by_vt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > > >
> > > > Again, the "by" needs to just be dropped.
> > > >
> > > > thanks,
> > > >
> > > > greg k-h
> > >
> > > hi greg...did'nt get your comment. can you please provide more elaborate
> > > info?
> >
> > Drop the letter "by_" at the beginning of the function name. It is there
> > ot indicate the type, which isn't done in the kernel.
> >
> > julia
>
> this is'nt a function name but an array name. is in't it fine?
>
Not at all. The issue is the name, why are you just adding a "_" here?
What does "by" mean? (hint, this is a rhetorical question, I know, I
need you to figure it out so you know how to properly rename the
variable here...)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-14 15:20 ` Greg KH
@ 2023-08-17 12:08 ` Pavan Bobba
0 siblings, 0 replies; 15+ messages in thread
From: Pavan Bobba @ 2023-08-17 12:08 UTC (permalink / raw)
To: Greg KH, Forest Bond, Michael Straube, Philipp Hortmann,
outreachy
Cc: linux-staging, linux-kernel
On Mon, Aug 14, 2023 at 05:20:40PM +0200, Greg KH wrote:
> On Mon, Aug 14, 2023 at 06:32:01PM +0530, Pavan Bobba wrote:
> > On Sat, Aug 12, 2023 at 08:41:51PM +0200, Julia Lawall wrote:
> > >
> > >
> > > On Sat, 12 Aug 2023, Pavan Bobba wrote:
> > >
> > > > On Fri, Aug 11, 2023 at 11:27:10PM +0200, Greg KH wrote:
> > > > > On Wed, Aug 09, 2023 at 06:17:22PM +0530, Pavan Bobba wrote:
> > > > > > Replace array name of camel case by snake case. Issue found
> > > > > > by checkpatch
> > > > > >
> > > > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > > > ---
> > > > > > v1 -> v2: 1. array name renamed from byVT3253B0_RFMD to by_vt3253b0_rfmd
> > > > > > 2. typo in the subject line "small case" corrected with the
> > > > > > proper word "snake case"
> > > > > >
> > > > > > Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> > > > > > ---
> > > > > > drivers/staging/vt6655/baseband.c | 6 +++---
> > > > > > 1 file changed, 3 insertions(+), 3 deletions(-)
> > > > > >
> > > > > > diff --git a/drivers/staging/vt6655/baseband.c b/drivers/staging/vt6655/baseband.c
> > > > > > index 0e135af8316b..cc8793256661 100644
> > > > > > --- a/drivers/staging/vt6655/baseband.c
> > > > > > +++ b/drivers/staging/vt6655/baseband.c
> > > > > > @@ -499,7 +499,7 @@ static const unsigned char by_vt3253_init_tab_rfmd[CB_VT3253_INIT_FOR_RFMD][2] =
> > > > > > };
> > > > > >
> > > > > > #define CB_VT3253B0_INIT_FOR_RFMD 256
> > > > > > -static const unsigned char byVT3253B0_RFMD[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > > > > > +static const unsigned char by_vt3253b0_rfmd[CB_VT3253B0_INIT_FOR_RFMD][2] = {
> > > > >
> > > > > Again, the "by" needs to just be dropped.
> > > > >
> > > > > thanks,
> > > > >
> > > > > greg k-h
> > > >
> > > > hi greg...did'nt get your comment. can you please provide more elaborate
> > > > info?
> > >
> > > Drop the letter "by_" at the beginning of the function name. It is there
> > > ot indicate the type, which isn't done in the kernel.
> > >
> > > julia
> >
> > this is'nt a function name but an array name. is in't it fine?
> >
>
> Not at all. The issue is the name, why are you just adding a "_" here?
> What does "by" mean? (hint, this is a rhetorical question, I know, I
> need you to figure it out so you know how to properly rename the
> variable here...)
>
> thanks,
>
> greg k-h
Thank you for the info. i have updated the patchset V3 based on this
discussion and will keep this point for future patchsets
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v2] staging: vt6655: replace camel case by snake case
@ 2023-08-23 12:53 Pavan Bobba
2023-08-23 12:58 ` Julia Lawall
2023-08-23 13:58 ` Greg KH
0 siblings, 2 replies; 15+ messages in thread
From: Pavan Bobba @ 2023-08-23 12:53 UTC (permalink / raw)
To: Forest Bond, Michael Straube, Philipp Hortmann, outreachy
Cc: linux-staging, linux-kernel
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
Issue found by checkpatch
Signed-off-by: Pavan Bobba <opensource206@gmail.com>
---
v1 -> v2: encoding of type information in variable names dropped
drivers/staging/vt6655/srom.c | 48 +++++++++++++++++------------------
1 file changed, 24 insertions(+), 24 deletions(-)
diff --git a/drivers/staging/vt6655/srom.c b/drivers/staging/vt6655/srom.c
index ee5ca4db74dc..9c13ad089d78 100644
--- a/drivers/staging/vt6655/srom.c
+++ b/drivers/staging/vt6655/srom.c
@@ -59,36 +59,36 @@
unsigned char SROMbyReadEmbedded(void __iomem *iobase,
unsigned char byContntOffset)
{
- unsigned short wDelay, wNoACK;
- unsigned char byWait;
- unsigned char byData;
- unsigned char byOrg;
+ unsigned short delay, noack;
+ unsigned char wait;
+ unsigned char data;
+ unsigned char org;
- byData = 0xFF;
- byOrg = ioread8(iobase + MAC_REG_I2MCFG);
+ data = 0xFF;
+ org = ioread8(iobase + MAC_REG_I2MCFG);
/* turn off hardware retry for getting NACK */
- iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
- for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
+ iowrite8(org & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
+ for (noack = 0; noack < W_MAX_I2CRETRY; noack++) {
iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD);
/* issue read command */
iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
/* wait DONE be set */
- for (wDelay = 0; wDelay < W_MAX_TIMEOUT; wDelay++) {
- byWait = ioread8(iobase + MAC_REG_I2MCSR);
- if (byWait & (I2MCSR_DONE | I2MCSR_NACK))
+ for (delay = 0; delay < W_MAX_TIMEOUT; delay++) {
+ wait = ioread8(iobase + MAC_REG_I2MCSR);
+ if (wait & (I2MCSR_DONE | I2MCSR_NACK))
break;
udelay(CB_DELAY_LOOP_WAIT);
}
- if ((wDelay < W_MAX_TIMEOUT) &&
- (!(byWait & I2MCSR_NACK))) {
+ if ((delay < W_MAX_TIMEOUT) &&
+ (!(wait & I2MCSR_NACK))) {
break;
}
}
- byData = ioread8(iobase + MAC_REG_I2MDIPT);
- iowrite8(byOrg, iobase + MAC_REG_I2MCFG);
- return byData;
+ data = ioread8(iobase + MAC_REG_I2MDIPT);
+ iowrite8(org, iobase + MAC_REG_I2MCFG);
+ return data;
}
/*
@@ -98,20 +98,20 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
* In:
* iobase - I/O base address
* Out:
- * pbyEepromRegs - EEPROM content Buffer
+ * eepromregs - EEPROM content Buffer
*
* Return Value: none
*
*/
-void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
+void SROMvReadAllContents(void __iomem *iobase, unsigned char *eepromregs)
{
int ii;
/* ii = Rom Address */
for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
- *pbyEepromRegs = SROMbyReadEmbedded(iobase,
+ *eepromregs = SROMbyReadEmbedded(iobase,
(unsigned char)ii);
- pbyEepromRegs++;
+ eepromregs++;
}
}
@@ -122,19 +122,19 @@ void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
* In:
* iobase - I/O base address
* Out:
- * pbyEtherAddress - Ethernet Address buffer
+ * etheraddress - Ethernet Address buffer
*
* Return Value: none
*
*/
void SROMvReadEtherAddress(void __iomem *iobase,
- unsigned char *pbyEtherAddress)
+ unsigned char *etheraddress)
{
unsigned char ii;
/* ii = Rom Address */
for (ii = 0; ii < ETH_ALEN; ii++) {
- *pbyEtherAddress = SROMbyReadEmbedded(iobase, ii);
- pbyEtherAddress++;
+ *etheraddress = SROMbyReadEmbedded(iobase, ii);
+ etheraddress++;
}
}
--
2.34.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-23 12:53 Pavan Bobba
@ 2023-08-23 12:58 ` Julia Lawall
2023-08-23 13:32 ` Pavan Bobba
2023-08-23 13:58 ` Greg KH
1 sibling, 1 reply; 15+ messages in thread
From: Julia Lawall @ 2023-08-23 12:58 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Wed, 23 Aug 2023, Pavan Bobba wrote:
> 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
>
> Issue found by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> v1 -> v2: encoding of type information in variable names dropped
>
> drivers/staging/vt6655/srom.c | 48 +++++++++++++++++------------------
> 1 file changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/staging/vt6655/srom.c b/drivers/staging/vt6655/srom.c
> index ee5ca4db74dc..9c13ad089d78 100644
> --- a/drivers/staging/vt6655/srom.c
> +++ b/drivers/staging/vt6655/srom.c
> @@ -59,36 +59,36 @@
> unsigned char SROMbyReadEmbedded(void __iomem *iobase,
> unsigned char byContntOffset)
> {
> - unsigned short wDelay, wNoACK;
> - unsigned char byWait;
> - unsigned char byData;
> - unsigned char byOrg;
> + unsigned short delay, noack;
> + unsigned char wait;
> + unsigned char data;
> + unsigned char org;
>
> - byData = 0xFF;
> - byOrg = ioread8(iobase + MAC_REG_I2MCFG);
> + data = 0xFF;
> + org = ioread8(iobase + MAC_REG_I2MCFG);
> /* turn off hardware retry for getting NACK */
> - iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
> - for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
> + iowrite8(org & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
> + for (noack = 0; noack < W_MAX_I2CRETRY; noack++) {
> iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
> iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD);
>
> /* issue read command */
> iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
> /* wait DONE be set */
> - for (wDelay = 0; wDelay < W_MAX_TIMEOUT; wDelay++) {
> - byWait = ioread8(iobase + MAC_REG_I2MCSR);
> - if (byWait & (I2MCSR_DONE | I2MCSR_NACK))
> + for (delay = 0; delay < W_MAX_TIMEOUT; delay++) {
> + wait = ioread8(iobase + MAC_REG_I2MCSR);
> + if (wait & (I2MCSR_DONE | I2MCSR_NACK))
> break;
> udelay(CB_DELAY_LOOP_WAIT);
> }
> - if ((wDelay < W_MAX_TIMEOUT) &&
> - (!(byWait & I2MCSR_NACK))) {
> + if ((delay < W_MAX_TIMEOUT) &&
Maybe the W_ should also be dropped?
> + (!(wait & I2MCSR_NACK))) {
> break;
> }
> }
> - byData = ioread8(iobase + MAC_REG_I2MDIPT);
> - iowrite8(byOrg, iobase + MAC_REG_I2MCFG);
> - return byData;
> + data = ioread8(iobase + MAC_REG_I2MDIPT);
> + iowrite8(org, iobase + MAC_REG_I2MCFG);
> + return data;
> }
>
> /*
> @@ -98,20 +98,20 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
> * In:
> * iobase - I/O base address
> * Out:
> - * pbyEepromRegs - EEPROM content Buffer
> + * eepromregs - EEPROM content Buffer
Here you could add some spaces to get the - EEPROM to line up with the
rest. Likewise later.
julia
> *
> * Return Value: none
> *
> */
> -void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
> +void SROMvReadAllContents(void __iomem *iobase, unsigned char *eepromregs)
> {
> int ii;
>
> /* ii = Rom Address */
> for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
> - *pbyEepromRegs = SROMbyReadEmbedded(iobase,
> + *eepromregs = SROMbyReadEmbedded(iobase,
> (unsigned char)ii);
> - pbyEepromRegs++;
> + eepromregs++;
> }
> }
>
> @@ -122,19 +122,19 @@ void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
> * In:
> * iobase - I/O base address
> * Out:
> - * pbyEtherAddress - Ethernet Address buffer
> + * etheraddress - Ethernet Address buffer
> *
> * Return Value: none
> *
> */
> void SROMvReadEtherAddress(void __iomem *iobase,
> - unsigned char *pbyEtherAddress)
> + unsigned char *etheraddress)
> {
> unsigned char ii;
>
> /* ii = Rom Address */
> for (ii = 0; ii < ETH_ALEN; ii++) {
> - *pbyEtherAddress = SROMbyReadEmbedded(iobase, ii);
> - pbyEtherAddress++;
> + *etheraddress = SROMbyReadEmbedded(iobase, ii);
> + etheraddress++;
> }
> }
> --
> 2.34.1
>
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-23 12:58 ` Julia Lawall
@ 2023-08-23 13:32 ` Pavan Bobba
0 siblings, 0 replies; 15+ messages in thread
From: Pavan Bobba @ 2023-08-23 13:32 UTC (permalink / raw)
To: Julia Lawall
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Wed, Aug 23, 2023 at 02:58:38PM +0200, Julia Lawall wrote:
>
> > }
> > - if ((wDelay < W_MAX_TIMEOUT) &&
> > - (!(byWait & I2MCSR_NACK))) {
> > + if ((delay < W_MAX_TIMEOUT) &&
>
> Maybe the W_ should also be dropped?
even non staging driver have this
https://elixir.bootlin.com/linux/v6.5-rc7/source/drivers/net/ethernet/via/via-velocity.h#L959
> > * Out:
> > - * pbyEepromRegs - EEPROM content Buffer
> > + * eepromregs - EEPROM content Buffer
>
> Here you could add some spaces to get the - EEPROM to line up with the
> rest. Likewise later.
>
> julia
ok
> > *
> > * Return Value: none
> > *
> > */
> > -void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
> > +void SROMvReadAllContents(void __iomem *iobase, unsigned char *eepromregs)
> > {
> > int ii;
> >
> > /* ii = Rom Address */
> > for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
> > - *pbyEepromRegs = SROMbyReadEmbedded(iobase,
> > + *eepromregs = SROMbyReadEmbedded(iobase,
> > (unsigned char)ii);
> > - pbyEepromRegs++;
> > + eepromregs++;
> > }
> > }
> >
> > @@ -122,19 +122,19 @@ void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
> > * In:
> > * iobase - I/O base address
> > * Out:
> > - * pbyEtherAddress - Ethernet Address buffer
> > + * etheraddress - Ethernet Address buffer
> > *
> > * Return Value: none
> > *
> > */
> > }
> > }
> > --
> > 2.34.1
> >
> >
> >
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH v2] staging: vt6655: replace camel case by snake case
2023-08-23 12:53 Pavan Bobba
2023-08-23 12:58 ` Julia Lawall
@ 2023-08-23 13:58 ` Greg KH
1 sibling, 0 replies; 15+ messages in thread
From: Greg KH @ 2023-08-23 13:58 UTC (permalink / raw)
To: Pavan Bobba
Cc: Forest Bond, Michael Straube, Philipp Hortmann, outreachy,
linux-staging, linux-kernel
On Wed, Aug 23, 2023 at 06:23:07PM +0530, Pavan Bobba wrote:
> 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
When you list the different things you are doing, that usually means you
want multiple patches. Would you want to review something that mixed
something like this together?
Also, please read the kernel documentation for how to write a good
changelog, and subject, this subject is identical to the one that you
were told to change and you agreed to :(
> Issue found by checkpatch
>
> Signed-off-by: Pavan Bobba <opensource206@gmail.com>
> ---
> v1 -> v2: encoding of type information in variable names dropped
You also forgot to actually cc: the maintainer that could take this
patch :(
>
> drivers/staging/vt6655/srom.c | 48 +++++++++++++++++------------------
> 1 file changed, 24 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/staging/vt6655/srom.c b/drivers/staging/vt6655/srom.c
> index ee5ca4db74dc..9c13ad089d78 100644
> --- a/drivers/staging/vt6655/srom.c
> +++ b/drivers/staging/vt6655/srom.c
> @@ -59,36 +59,36 @@
> unsigned char SROMbyReadEmbedded(void __iomem *iobase,
> unsigned char byContntOffset)
> {
> - unsigned short wDelay, wNoACK;
> - unsigned char byWait;
> - unsigned char byData;
> - unsigned char byOrg;
> + unsigned short delay, noack;
> + unsigned char wait;
> + unsigned char data;
> + unsigned char org;
>
> - byData = 0xFF;
> - byOrg = ioread8(iobase + MAC_REG_I2MCFG);
> + data = 0xFF;
> + org = ioread8(iobase + MAC_REG_I2MCFG);
> /* turn off hardware retry for getting NACK */
> - iowrite8(byOrg & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
> - for (wNoACK = 0; wNoACK < W_MAX_I2CRETRY; wNoACK++) {
> + iowrite8(org & (~I2MCFG_NORETRY), iobase + MAC_REG_I2MCFG);
> + for (noack = 0; noack < W_MAX_I2CRETRY; noack++) {
> iowrite8(EEP_I2C_DEV_ID, iobase + MAC_REG_I2MTGID);
> iowrite8(byContntOffset, iobase + MAC_REG_I2MTGAD);
>
> /* issue read command */
> iowrite8(I2MCSR_EEMR, iobase + MAC_REG_I2MCSR);
> /* wait DONE be set */
> - for (wDelay = 0; wDelay < W_MAX_TIMEOUT; wDelay++) {
> - byWait = ioread8(iobase + MAC_REG_I2MCSR);
> - if (byWait & (I2MCSR_DONE | I2MCSR_NACK))
> + for (delay = 0; delay < W_MAX_TIMEOUT; delay++) {
> + wait = ioread8(iobase + MAC_REG_I2MCSR);
> + if (wait & (I2MCSR_DONE | I2MCSR_NACK))
> break;
> udelay(CB_DELAY_LOOP_WAIT);
> }
> - if ((wDelay < W_MAX_TIMEOUT) &&
> - (!(byWait & I2MCSR_NACK))) {
> + if ((delay < W_MAX_TIMEOUT) &&
> + (!(wait & I2MCSR_NACK))) {
> break;
> }
> }
> - byData = ioread8(iobase + MAC_REG_I2MDIPT);
> - iowrite8(byOrg, iobase + MAC_REG_I2MCFG);
> - return byData;
> + data = ioread8(iobase + MAC_REG_I2MDIPT);
> + iowrite8(org, iobase + MAC_REG_I2MCFG);
> + return data;
> }
>
> /*
> @@ -98,20 +98,20 @@ unsigned char SROMbyReadEmbedded(void __iomem *iobase,
> * In:
> * iobase - I/O base address
> * Out:
> - * pbyEepromRegs - EEPROM content Buffer
> + * eepromregs - EEPROM content Buffer
> *
> * Return Value: none
> *
> */
> -void SROMvReadAllContents(void __iomem *iobase, unsigned char *pbyEepromRegs)
> +void SROMvReadAllContents(void __iomem *iobase, unsigned char *eepromregs)
> {
> int ii;
>
> /* ii = Rom Address */
> for (ii = 0; ii < EEP_MAX_CONTEXT_SIZE; ii++) {
> - *pbyEepromRegs = SROMbyReadEmbedded(iobase,
> + *eepromregs = SROMbyReadEmbedded(iobase,
> (unsigned char)ii);
You now have an alignment issue, right? Did you run this through
checkpatch?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2023-08-23 13:58 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-05 8:59 [PATCH v2] staging: vt6655: replace camel case by snake case Pavan Bobba
2023-08-05 16:30 ` Dan Carpenter
2023-08-09 12:20 ` Greg KH
-- strict thread matches above, loose matches on Subject: below --
2023-08-23 12:53 Pavan Bobba
2023-08-23 12:58 ` Julia Lawall
2023-08-23 13:32 ` Pavan Bobba
2023-08-23 13:58 ` Greg KH
2023-08-09 12:47 Pavan Bobba
2023-08-11 21:27 ` Greg KH
[not found] ` <ZNfPiQAL3ixA7tjz@ubuntu.myguest.virtualbox.org>
[not found] ` <alpine.DEB.2.22.394.2308122041160.3315@hadrien>
2023-08-14 13:02 ` Pavan Bobba
2023-08-14 15:20 ` Greg KH
2023-08-17 12:08 ` Pavan Bobba
2023-08-03 15:27 Pavan Bobba
2023-08-03 15:34 ` Greg Kroah-Hartman
2023-08-04 13:23 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox