[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.22.394.2211010942210.2834@hadrien>
Date: Tue, 1 Nov 2022 09:43:50 +0100 (CET)
From: Julia Lawall <julia.lawall@...ia.fr>
To: Tanjuate Brunostar <tanjubrunostar0@...il.com>
cc: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org, outreachy@...ts.linux.dev
Subject: Re: [PATCH v2] staging: vt6655: change variable name wTimeStampOff
On Tue, 1 Nov 2022, Tanjuate Brunostar wrote:
> Change the variable name wTimeStampOff to adhear to Linux kernel coding
> style, which does not allow naming variables in CamelCase. error is
> reported by checkpatch
adhear -> adhere
error -> Error
Actually, the variable is written in Hungarian notation, given the little
w at the beginning of its name.
Maybe
"Remove the use of Hungarian notation, which is not used in the Linux
kernel."
julia
>
> Signed-off-by: Tanjuate Brunostar <tanjubrunostar0@...il.com>
> ---
> drivers/staging/vt6655/rxtx.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> index 1e5036121665..9bdcf2337235 100644
> --- a/drivers/staging/vt6655/rxtx.c
> +++ b/drivers/staging/vt6655/rxtx.c
> @@ -54,7 +54,7 @@
> */
> #define CRITICAL_PACKET_LEN 256
>
> -static const unsigned short wTimeStampOff[2][MAX_RATE] = {
> +static const unsigned short time_stamp_off[2][MAX_RATE] = {
> {384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */
> {384, 192, 130, 113, 54, 43, 37, 31, 28, 25, 24, 23}, /* Short Preamble */
> };
> @@ -130,7 +130,7 @@ static __le16 s_uFillDataHead(struct vnt_private *pDevice,
>
> static __le16 vnt_time_stamp_off(struct vnt_private *priv, u16 rate)
> {
> - return cpu_to_le16(wTimeStampOff[priv->preamble_type % 2]
> + return cpu_to_le16(time_stamp_off[priv->preamble_type % 2]
> [rate % MAX_RATE]);
> }
>
> --
> 2.34.1
>
>
>
Powered by blists - more mailing lists