[PATCH 5/8] staging: rtl8192e: Rename RFWaitCounter

From: Philipp Hortmann
Date: Fri Sep 09 2022 - 15:22:04 EST


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@xxxxxxxxx>
---
drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 6 +++---
1 file 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__);
--
2.37.2