public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Valentin Vidic <vvidic@valentin-vidic.from.hr>
Cc: Philipp Hortmann <philipp.g.hortmann@gmail.com>,
	linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] staging: rtl8192e: fix CamelCase struct member
Date: Sun, 18 Sep 2022 15:49:52 +0200	[thread overview]
Message-ID: <YyciAPSyyusp1eCR@kroah.com> (raw)
In-Reply-To: <20220918114926.3809060-1-vvidic@valentin-vidic.from.hr>

On Sun, Sep 18, 2022 at 01:49:26PM +0200, Valentin Vidic wrote:
> Fix checkpatch warnings for struct member pFirmware.
> 
> Signed-off-by: Valentin Vidic <vvidic@valentin-vidic.from.hr>
> ---
>  drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c      | 8 ++++----
>  drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 4 ++--
>  drivers/staging/rtl8192e/rtl8192e/rtl_core.c        | 8 ++++----
>  drivers/staging/rtl8192e/rtl8192e/rtl_core.h        | 2 +-
>  4 files changed, 11 insertions(+), 11 deletions(-)
> 
> diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> index 4b9249195b5a..6308a25e064c 100644
> --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
> @@ -707,19 +707,19 @@ bool rtl92e_start_adapter(struct net_device *dev)
>  		rtl92e_writeb(dev, ANAPAR, 0x37);
>  		mdelay(500);
>  	}
> -	priv->pFirmware->status = FW_STATUS_0_INIT;
> +	priv->pfirmware->status = FW_STATUS_0_INIT;

What does "pfirmware" mean here?

If you fix up camelcase warnings, please do so in a way that is the
proper Linux kernel style, not just making everything lowercase.

Look up Hungarian notation and why the original was named this way and
why this isn't needed in Linux at all (i.e. we have modern compilers.)

thanks,

greg k-h

  reply	other threads:[~2022-09-18 13:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-18 11:49 [PATCH] staging: rtl8192e: fix CamelCase struct member Valentin Vidic
2022-09-18 13:49 ` Greg Kroah-Hartman [this message]
2022-09-18 18:42   ` Valentin Vidić

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YyciAPSyyusp1eCR@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=philipp.g.hortmann@gmail.com \
    --cc=vvidic@valentin-vidic.from.hr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox