aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
diff options
context:
space:
mode:
authorPhilipp Hortmann <philipp.g.hortmann@gmail.com>2022-09-09 21:21:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-11 13:58:22 +0200
commite13a47bef29a843147b50e417a2782a3c5ebf90c (patch)
tree3fdf24346fcc5c9a17f9f093e0b22fbe06b29dfa /drivers/staging/rtl8192e/rtl8192e/rtl_core.c
parentstaging: rtl8192e: Rename rtState (diff)
downloadlinux-dev-e13a47bef29a843147b50e417a2782a3c5ebf90c.tar.xz
linux-dev-e13a47bef29a843147b50e417a2782a3c5ebf90c.zip
staging: rtl8192e: Rename RFWaitCounter
Rename variable RFWaitCounter to rf_wait_counter to avoid CamelCase which is not accepted by checkpatch.pl. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/11acf28a0b9f56dde4fa4fbd74a085cf2fa1c20d.1662402870.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192e/rtl8192e/rtl_core.c')
-rw-r--r--drivers/staging/rtl8192e/rtl8192e/rtl_core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
index bc8aca808e99..ee3d0f243463 100644
--- a/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
+++ b/drivers/staging/rtl8192e/rtl8192e/rtl_core.c
@@ -140,7 +140,7 @@ bool rtl92e_set_rf_state(struct net_device *dev,
bool action_allowed = false;
bool connect_by_ssid = false;
enum rt_rf_power_state rt_state;
- u16 RFWaitCounter = 0;
+ u16 rf_wait_counter = 0;
unsigned long flag;
while (true) {
@@ -149,10 +149,10 @@ bool rtl92e_set_rf_state(struct net_device *dev,
spin_unlock_irqrestore(&priv->rf_ps_lock, flag);
while (priv->RFChangeInProgress) {
- RFWaitCounter++;
+ rf_wait_counter++;
mdelay(1);
- if (RFWaitCounter > 100) {
+ if (rf_wait_counter > 100) {
netdev_warn(dev,
"%s(): Timeout waiting for RF change.\n",
__func__);