public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
Cc: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com,
	linux-fbdev@vger.kernel.org, linux-staging@lists.linux.dev,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/3] staging: sm750fb: Rename init_status members to snake_case
Date: Sun, 26 Apr 2026 21:09:49 +0200	[thread overview]
Message-ID: <2026042629-dynamite-oxidation-480e@gregkh> (raw)
In-Reply-To: <20260407074805.14505-3-chakrabortyshubham66@gmail.com>

On Tue, Apr 07, 2026 at 01:18:04PM +0530, Shubham Chakraborty wrote:
> Rename the init_status structure members powerMode, setAllEngOff, and
> resetMemory to snake_case to follow the kernel coding style.
> 
> Signed-off-by: Shubham Chakraborty <chakrabortyshubham66@gmail.com>
> ---
>  drivers/staging/sm750fb/sm750.c | 6 +++---
>  drivers/staging/sm750fb/sm750.h | 6 +++---
>  2 files changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
> index 729c34372a1e..c30ffab8a5f3 100644
> --- a/drivers/staging/sm750fb/sm750.c
> +++ b/drivers/staging/sm750fb/sm750.c
> @@ -921,9 +921,9 @@ static void sm750fb_setup(struct sm750_dev *sm750_dev, char *src)
>  	sm750_dev->init_parm.chip_clk = 0;
>  	sm750_dev->init_parm.mem_clk = 0;
>  	sm750_dev->init_parm.master_clk = 0;
> -	sm750_dev->init_parm.powerMode = 0;
> -	sm750_dev->init_parm.setAllEngOff = 0;
> -	sm750_dev->init_parm.resetMemory = 1;
> +	sm750_dev->init_parm.power_mode = 0;
> +	sm750_dev->init_parm.set_all_eng_off = 0;
> +	sm750_dev->init_parm.reset_memory = 1;

If these are only set, and never read, why have them at all?  Why not
just remove them instead?

thanks,

greg k-h

  reply	other threads:[~2026-04-27  3:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-07  7:48 [PATCH v3 0/3] staging: sm750fb: Rename CamelCase identifiers Shubham Chakraborty
2026-04-07  7:48 ` [PATCH v3 1/3] staging: sm750fb: Rename sm750_pnltype enum values to upper case Shubham Chakraborty
2026-04-07  7:48 ` [PATCH v3 2/3] staging: sm750fb: Rename init_status members to snake_case Shubham Chakraborty
2026-04-26 19:09   ` Greg KH [this message]
2026-04-07  7:48 ` [PATCH v3 3/3] staging: sm750fb: Rename sm750_dev " Shubham Chakraborty
2026-04-26 19:10   ` Greg KH

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=2026042629-dynamite-oxidation-480e@gregkh \
    --to=gregkh@linuxfoundation.org \
    --cc=chakrabortyshubham66@gmail.com \
    --cc=linux-fbdev@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-staging@lists.linux.dev \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=teddy.wang@siliconmotion.com \
    /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