From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 References: <20190107105214.GA31559@kroah.com> In-Reply-To: <20190107105214.GA31559@kroah.com> From: Himadri Pandya Date: Sat, 12 Jan 2019 22:26:55 -0800 Message-ID: Subject: Re: rtl8192e: need help with variable naming convention Content-Type: multipart/alternative; boundary="0000000000006c0207057f5104c9" List-ID: To: Greg KH Cc: driverdev-devel@linuxdriverproject.org --0000000000006c0207057f5104c9 Content-Type: text/plain; charset="UTF-8" Tried but it resulted in a compilation error. So renaming it with a different name (channel_array[ ]) instead. Thank you. - Himadri On Mon, Jan 7, 2019 at 2:52 AM Greg KH wrote: > On Mon, Jan 07, 2019 at 04:04:46PM +0530, Himadri Pandya wrote: > > Hello, > > > > I'm getting started with device drivers. And as a starter, I'm working on > > some clean-up patches. I'm particularly targeting to rename a structure > > array "ChannelPlan"(in file dot11d.c) to fix a checkpatch.pl warning > "Avoid > > CamelCase". According to the coding style, it should be converted to > > "channel_plan". But the code contains a function argument with the same > > name "channel_plan". Should I then rename the array to something like > > "channel_name_"? I'm sorry for asking such a silly question. But I want > to > > know if renaming it in such a ways fits in the convention before I make > the > > change. > > A structure name is different from a function name, so odds are you can > just do this with no problems. Try it and find out! > > greg k-h > --0000000000006c0207057f5104c9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Tried but it resulted in a compilation error. So renaming= =C2=A0it with a different name (channel_array[ ]) instead.

Thank you.

- Himadri=C2=A0

<= div class=3D"gmail_quote">
On Mon, Jan 7, 2019 at 2:52 AM G= reg KH <gregkh@linuxfounda= tion.org> wrote:
On Mon, Jan 07, 2019 at 04:04:46PM +0530, Himadri Pandya wrote:
> Hello,
>
> I'm getting started with device drivers. And as a starter, I'm= working on
> some clean-up patches.=C2=A0 I'm particularly targeting to rename = a structure
> array "ChannelPlan"(in file dot11d.c) to fix a checkpatch.pl = warning "Avoid
> CamelCase". According to the coding style, it should be converted= to
> "channel_plan". But the code contains a function argument wi= th the same
> name "channel_plan". Should I then rename the array to somet= hing like
> "channel_name_"? I'm sorry for asking such a silly quest= ion. But I want to
> know if renaming it in such a ways fits in the convention before I mak= e the
> change.

A structure name is different from a function name, so odds are you can
just do this with no problems.=C2=A0 Try it and find out!

greg k-h
--0000000000006c0207057f5104c9--