Re: [PATCH 6/6] staging: sm750fb: Rename local var `nDirection`
From: Greg KH
Date: Thu Jun 19 2025 - 11:30:42 EST
On Tue, May 27, 2025 at 10:11:28AM -0700, Eric Florin wrote:
> Rename local variable `nDirection` to `n_direction` in
> `sm750_hw_copyarea` to conform with kernel style guidelines as reported
> by checkpatch.pl
>
> CHECK: Avoid CamelCase: <nDirection>
>
> Signed-off-by: Eric Florin <ericflorin@xxxxxxxxxx>
> ---
> drivers/staging/sm750fb/sm750_accel.c | 16 ++++++++--------
> 1 file changed, 8 insertions(+), 8 deletions(-)
>
> diff --git a/drivers/staging/sm750fb/sm750_accel.c b/drivers/staging/sm750fb/sm750_accel.c
> index a34d8f6a033d..b9f90c934b7d 100644
> --- a/drivers/staging/sm750fb/sm750_accel.c
> +++ b/drivers/staging/sm750fb/sm750_accel.c
> @@ -153,9 +153,9 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
> unsigned int width, unsigned int height,
> unsigned int rop2)
> {
> - unsigned int nDirection, de_ctrl;
> + unsigned int n_direction, de_ctrl;
Why keep the "n" at all?