From: Pavel Skripkin <paskripkin@gmail.com>
To: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
Cc: "Forest Bond" <forest@alittletooquiet.net>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
"Tommaso Merciai" <tomm.merciai@gmail.com>,
"Aldas Taraškevičius" <aldas60@gmail.com>,
"Dan Carpenter" <dan.carpenter@oracle.com>,
"Karolina Drobnik" <karolinadrobnik@gmail.com>,
"Lucas Henneman" <lucas.henneman@linaro.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3] staging: vt6655: refactor byRadioCtl to radio_ctl
Date: Sat, 4 Dec 2021 11:38:16 +0300 [thread overview]
Message-ID: <19041795-e692-dd19-c14f-cd951bc7a3de@gmail.com> (raw)
In-Reply-To: <20211203202410.3807147-1-alb3rt0.m3rciai@gmail.com>
On 12/3/21 23:24, Alberto Merciai wrote:
> Replace camelcase hungarian notated variable "byRadioCtl"
> into linux kernel coding style equivalent variable "radio_ctl".
>
> Signed-off-by: Alberto Merciai <alb3rt0.m3rciai@gmail.com>
> ---
>
> v2 -> v3
> - replace typo inside mail message body
> v1 -> v2
> - Correct mail subject
>
> drivers/staging/vt6655/device.h | 2 +-
> drivers/staging/vt6655/device_main.c | 8 ++++----
> 2 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/staging/vt6655/device.h b/drivers/staging/vt6655/device.h
> index c51eba94230d..245f992e5a23 100644
> --- a/drivers/staging/vt6655/device.h
> +++ b/drivers/staging/vt6655/device.h
> @@ -227,7 +227,7 @@ struct vnt_private {
> bool bPWBitOn;
>
> /* GPIO Radio Control */
> - unsigned char byRadioCtl;
> + unsigned char radio_ctl;
> unsigned char byGPIO;
> bool hw_radio_off;
> bool bPrvActive4RadioOFF;
> diff --git a/drivers/staging/vt6655/device_main.c b/drivers/staging/vt6655/device_main.c
> index 897d70cf32b8..37a82550ca82 100644
> --- a/drivers/staging/vt6655/device_main.c
> +++ b/drivers/staging/vt6655/device_main.c
> @@ -371,18 +371,18 @@ static void device_init_registers(struct vnt_private *priv)
>
> priv->radio_off = false;
>
> - priv->byRadioCtl = SROMbyReadEmbedded(priv->port_offset,
> + priv->radio_ctl = SROMbyReadEmbedded(priv->port_offset,
> EEP_OFS_RADIOCTL);
> priv->hw_radio_off = false;
>
> - if (priv->byRadioCtl & EEP_RADIOCTL_ENABLE) {
> + if (priv->radio_ctl & EEP_RADIOCTL_ENABLE) {
> /* Get GPIO */
> MACvGPIOIn(priv->port_offset, &priv->byGPIO);
>
> if (((priv->byGPIO & GPIO0_DATA) &&
> - !(priv->byRadioCtl & EEP_RADIOCTL_INV)) ||
> + !(priv->radio_ctl & EEP_RADIOCTL_INV)) ||
> (!(priv->byGPIO & GPIO0_DATA) &&
> - (priv->byRadioCtl & EEP_RADIOCTL_INV)))
> + (priv->radio_ctl & EEP_RADIOCTL_INV)))
> priv->hw_radio_off = true;
> }
>
>
This one is odd. Code uses byRadioCtl as local storage to check register
value within one function...
I might be missing something, but I think, it can be removed as well.
With regards,
Pavel Skripkin
prev parent reply other threads:[~2021-12-04 8:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 20:24 [PATCH v3] staging: vt6655: refactor byRadioCtl to radio_ctl Alberto Merciai
2021-12-04 8:38 ` Pavel Skripkin [this message]
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=19041795-e692-dd19-c14f-cd951bc7a3de@gmail.com \
--to=paskripkin@gmail.com \
--cc=alb3rt0.m3rciai@gmail.com \
--cc=aldas60@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=forest@alittletooquiet.net \
--cc=gregkh@linuxfoundation.org \
--cc=karolinadrobnik@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=lucas.henneman@linaro.org \
--cc=tomm.merciai@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.