Commit e13a47be authored by Philipp Hortmann's avatar Philipp Hortmann Committed by Greg Kroah-Hartman

staging: rtl8192e: Rename RFWaitCounter

Rename variable RFWaitCounter to rf_wait_counter to avoid CamelCase which
is not accepted by checkpatch.pl.
Signed-off-by: default avatarPhilipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/11acf28a0b9f56dde4fa4fbd74a085cf2fa1c20d.1662402870.git.philipp.g.hortmann@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7fa8916e
......@@ -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__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment