From 45b90cb0402e9a7ce7b1b89a51de145fcf2ab5af Mon Sep 17 00:00:00 2001 From: Philipp Hortmann Date: Fri, 9 Sep 2022 21:21:03 +0200 Subject: [PATCH] staging: rtl8192e: Rename ChangeSource Rename variable ChangeSource to change_source to avoid CamelCase which is not accepted by checkpatch.pl. Signed-off-by: Philipp Hortmann Link: https://lore.kernel.org/r/0d934bb707510692ccd161ea6034b69133aac14c.1662402870.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman --- 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 5ac4817909df7..005c4fd966eb4 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 1796c881a5fa4..7dee404810872 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.30.2