From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 1/8] staging: rtl8192e: Rename ChangeSource
Date: Fri, 9 Sep 2022 21:21:03 +0200 [thread overview]
Message-ID: <0d934bb707510692ccd161ea6034b69133aac14c.1662402870.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1662402870.git.philipp.g.hortmann@gmail.com>
Rename variable ChangeSource to change_source to avoid CamelCase which
is not accepted by checkpatch.pl.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 16 ++++++++--------
drivers/staging/rtl8192e/rtl8192e/rtl_core.h | 2 +-
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index 5ac4817909df..005c4fd966eb 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -133,7 +133,7 @@ void rtl92e_writew(struct net_device *dev, int x, u16 y)
****************************************************************************/
bool rtl92e_set_rf_state(struct net_device *dev,
enum rt_rf_power_state state_to_set,
- RT_RF_CHANGE_SOURCE ChangeSource)
+ RT_RF_CHANGE_SOURCE change_source)
{
struct r8192_priv *priv = rtllib_priv(dev);
struct rtllib_device *ieee = priv->rtllib;
@@ -170,9 +170,9 @@ bool rtl92e_set_rf_state(struct net_device *dev,
switch (state_to_set) {
case eRfOn:
- priv->rtllib->RfOffReason &= (~ChangeSource);
+ priv->rtllib->RfOffReason &= (~change_source);
- if ((ChangeSource == RF_CHANGE_BY_HW) && priv->bHwRadioOff)
+ if ((change_source == RF_CHANGE_BY_HW) && priv->bHwRadioOff)
priv->bHwRadioOff = false;
if (!priv->rtllib->RfOffReason) {
@@ -180,7 +180,7 @@ bool rtl92e_set_rf_state(struct net_device *dev,
bActionAllowed = true;
if (rtState == eRfOff &&
- ChangeSource >= RF_CHANGE_BY_HW)
+ change_source >= RF_CHANGE_BY_HW)
bConnectBySSID = true;
}
break;
@@ -190,7 +190,7 @@ bool rtl92e_set_rf_state(struct net_device *dev,
if ((priv->rtllib->iw_mode == IW_MODE_INFRA) ||
(priv->rtllib->iw_mode == IW_MODE_ADHOC)) {
if ((priv->rtllib->RfOffReason > RF_CHANGE_BY_IPS) ||
- (ChangeSource > RF_CHANGE_BY_IPS)) {
+ (change_source > RF_CHANGE_BY_IPS)) {
if (ieee->state == RTLLIB_LINKED)
priv->blinked_ingpio = true;
else
@@ -199,14 +199,14 @@ bool rtl92e_set_rf_state(struct net_device *dev,
WLAN_REASON_DISASSOC_STA_HAS_LEFT);
}
}
- if ((ChangeSource == RF_CHANGE_BY_HW) && !priv->bHwRadioOff)
+ if ((change_source == RF_CHANGE_BY_HW) && !priv->bHwRadioOff)
priv->bHwRadioOff = true;
- priv->rtllib->RfOffReason |= ChangeSource;
+ priv->rtllib->RfOffReason |= change_source;
bActionAllowed = true;
break;
case eRfSleep:
- priv->rtllib->RfOffReason |= ChangeSource;
+ priv->rtllib->RfOffReason |= change_source;
bActionAllowed = true;
break;
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
index 1796c881a5fa..7dee40481087 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.h
@@ -599,5 +599,5 @@ bool rtl92e_disable_nic(struct net_device *dev);
bool rtl92e_set_rf_state(struct net_device *dev,
enum rt_rf_power_state state_to_set,
- RT_RF_CHANGE_SOURCE ChangeSource);
+ RT_RF_CHANGE_SOURCE change_source);
#endif
--
2.37.2
next prev parent reply other threads:[~2022-09-09 19:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-09 19:20 [PATCH 0/8] staging: rtl8192e: Rename CamelCase variables in rtl_core Philipp Hortmann
2022-09-09 19:21 ` Philipp Hortmann [this message]
2022-09-09 19:21 ` [PATCH 2/8] staging: rtl8192e: Rename bActionAllowed Philipp Hortmann
2022-09-09 19:21 ` [PATCH 3/8] staging: rtl8192e: Rename bConnectBySSID Philipp Hortmann
2022-09-09 19:21 ` [PATCH 4/8] staging: rtl8192e: Rename rtState Philipp Hortmann
2022-09-09 19:21 ` [PATCH 5/8] staging: rtl8192e: Rename RFWaitCounter Philipp Hortmann
2022-09-09 19:21 ` [PATCH 6/8] staging: rtl8192e: Rename RFChangeInProgress Philipp Hortmann
2022-09-09 19:22 ` [PATCH 7/8] staging: rtl8192e: Rename bHwRadioOff Philipp Hortmann
2022-09-09 19:22 ` [PATCH 8/8] staging: rtl8192e: Rename CurSlotTime Philipp Hortmann
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=0d934bb707510692ccd161ea6034b69133aac14c.1662402870.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/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
all inboxes | Powered by JetHome®