[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2025041758-mounting-populace-458f@gregkh>
Date: Thu, 17 Apr 2025 18:58:25 +0200
From: Greg Korah-Hartman <gregkh@...uxfoundation.org>
To: Ruben Wauters <rubenru09@....com>
Cc: Sudip Mukherjee <sudipm.mukherjee@...il.com>,
Teddy Wang <teddy.wang@...iconmotion.com>,
Sudip Mukherjee <sudip.mukherjee@...ethink.co.uk>,
linux-fbdev@...r.kernel.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: sm750fb: fix instances of camel case
On Thu, Apr 17, 2025 at 04:27:47PM +0100, Ruben Wauters wrote:
> As per the kernel style guidelines, and as reported by checkpatch.pl,
> replaced instances of camel case with snake_case where appropriate and
> aligned names in the header with those in the c file.
>
> Signed-off-by: Ruben Wauters <rubenru09@....com>
> ---
> drivers/staging/sm750fb/ddk750_sii164.c | 113 ++++++++++++------------
> drivers/staging/sm750fb/ddk750_sii164.h | 26 +++---
> 2 files changed, 69 insertions(+), 70 deletions(-)
>
> diff --git a/drivers/staging/sm750fb/ddk750_sii164.c b/drivers/staging/sm750fb/ddk750_sii164.c
> index 89700fc5dd2e..20c2f386220c 100644
> --- a/drivers/staging/sm750fb/ddk750_sii164.c
> +++ b/drivers/staging/sm750fb/ddk750_sii164.c
> @@ -12,11 +12,11 @@
> #define USE_HW_I2C
>
> #ifdef USE_HW_I2C
> - #define i2cWriteReg sm750_hw_i2c_write_reg
> - #define i2cReadReg sm750_hw_i2c_read_reg
> + #define I2C_WRITE_REG sm750_hw_i2c_write_reg
> + #define I2C_READ_REG sm750_hw_i2c_read_reg
Close, but these are really a function name, not a macro, right?
And what sets this #define? If it's always enabled, then unwrap this
indirection instead of keeping it around
> #else
> - #define i2cWriteReg sm750_sw_i2c_write_reg
> - #define i2cReadReg sm750_sw_i2c_read_reg
> + #define I2C_WRITE_REG sm750_sw_i2c_write_reg
> + #define I2C_READ_REG sm750_sw_i2c_read_reg
> #endif
>
> /* SII164 Vendor and Device ID */
> @@ -25,7 +25,7 @@
>
> #ifdef SII164_FULL_FUNCTIONS
> /* Name of the DVI Controller chip */
> -static char *gDviCtrlChipName = "Silicon Image SiI 164";
> +static char *dvi_controller_chip_name = "Silicon Image SiI 164";
This is a totally different thing.
> #endif
>
> /*
> @@ -37,14 +37,14 @@ static char *gDviCtrlChipName = "Silicon Image SiI 164";
> */
> unsigned short sii164_get_vendor_id(void)
> {
> - unsigned short vendorID;
> + unsigned short vendor;
Why change this?
This is a mix of lots of different changes, please break things up into
"one logical change per patch"
thanks,
greg k-h
Powered by blists - more mailing lists