From: Tree Davies <tdavies@darkphysics.net>
To: gregkh@linuxfoundation.org, philipp.g.hortmann@gmail.com, anjan@momi.ca
Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org,
Tree Davies <tdavies@darkphysics.net>
Subject: [PATCH 09/18] Staging: rtl8192e: Rename variable LPSAwakeIntvl
Date: Wed, 24 Jan 2024 14:44:43 -0800 [thread overview]
Message-ID: <20240124224452.968724-10-tdavies@darkphysics.net> (raw)
In-Reply-To: <20240124224452.968724-1-tdavies@darkphysics.net>
Rename variable LPSAwakeIntvl to lps_awake_intvl to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
drivers/staging/rtl8192e/rtllib.h | 2 +-
drivers/staging/rtl8192e/rtllib_softmac.c | 26 +++++++++++------------
2 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index c380d1c3e9b6..8de46b61416b 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -1072,7 +1072,7 @@ struct rt_pwr_save_ctrl {
bool bLeisurePs;
u8 LpsIdleCount;
- u8 LPSAwakeIntvl;
+ u8 lps_awake_intvl;
u32 CurPsLevel;
};
diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c
index 9ee6364f7b00..545f79387991 100644
--- a/drivers/staging/rtl8192e/rtllib_softmac.c
+++ b/drivers/staging/rtl8192e/rtllib_softmac.c
@@ -1379,15 +1379,15 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
if (time) {
if (ieee->awake_pkt_sent) {
- psc->LPSAwakeIntvl = 1;
+ psc->lps_awake_intvl = 1;
} else {
u8 max_period = 5;
- if (psc->LPSAwakeIntvl == 0)
- psc->LPSAwakeIntvl = 1;
- psc->LPSAwakeIntvl = (psc->LPSAwakeIntvl >=
+ if (psc->lps_awake_intvl == 0)
+ psc->lps_awake_intvl = 1;
+ psc->lps_awake_intvl = (psc->lps_awake_intvl >=
max_period) ? max_period :
- (psc->LPSAwakeIntvl + 1);
+ (psc->lps_awake_intvl + 1);
}
{
u8 lps_awake_intvl_tmp = 0;
@@ -1395,23 +1395,23 @@ static short rtllib_sta_ps_sleep(struct rtllib_device *ieee, u64 *time)
u8 count = ieee->current_network.tim.tim_count;
if (count == 0) {
- if (psc->LPSAwakeIntvl > period)
+ if (psc->lps_awake_intvl > period)
lps_awake_intvl_tmp = period +
- (psc->LPSAwakeIntvl -
+ (psc->lps_awake_intvl -
period) -
- ((psc->LPSAwakeIntvl - period) %
+ ((psc->lps_awake_intvl - period) %
period);
else
- lps_awake_intvl_tmp = psc->LPSAwakeIntvl;
+ lps_awake_intvl_tmp = psc->lps_awake_intvl;
} else {
- if (psc->LPSAwakeIntvl >
+ if (psc->lps_awake_intvl >
ieee->current_network.tim.tim_count)
lps_awake_intvl_tmp = count +
- (psc->LPSAwakeIntvl - count) -
- ((psc->LPSAwakeIntvl - count) % period);
+ (psc->lps_awake_intvl - count) -
+ ((psc->lps_awake_intvl - count) % period);
else
- lps_awake_intvl_tmp = psc->LPSAwakeIntvl;
+ lps_awake_intvl_tmp = psc->lps_awake_intvl;
}
*time = ieee->current_network.last_dtim_sta_time
--
2.39.2
next prev parent reply other threads:[~2024-01-24 22:45 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-24 22:44 [PATCH 00/18] Staging: rtl8192e: 18 Additional checkpatch fixes for rtllib_softmac.c Tree Davies
2024-01-24 22:44 ` [PATCH 01/18] Staging: rtl8192e: Rename variable FirstIe_InScan Tree Davies
2024-01-24 22:44 ` [PATCH 02/18] Staging: rtl8192e: Rename function rtllib_rx_ADDBARsp() Tree Davies
2024-01-24 22:44 ` [PATCH 03/18] Staging: rtl8192e: Rename variable LPSAwakeIntvl_tmp Tree Davies
2024-01-24 22:44 ` [PATCH 04/18] Staging: rtl8192e: Rename variable LPSDelayCnt Tree Davies
2024-01-24 22:44 ` [PATCH 05/18] Staging: rtl8192e: Rename function pointer SetHwRegHandler() Tree Davies
2024-01-24 22:44 ` [PATCH 06/18] Staging: rtl8192e: Rename function MgntQuery_TxRateExcludeCCKRates() Tree Davies
2024-01-24 22:44 ` [PATCH 07/18] Staging: rtl8192e: Rename variable PeerHTCapBuf Tree Davies
2024-01-24 22:44 ` [PATCH 08/18] Staging: rtl8192e: Rename variable PeerHTInfoBuf Tree Davies
2024-01-24 22:44 ` Tree Davies [this message]
2024-01-24 22:44 ` [PATCH 10/18] Staging: rtl8192e: Rename variable SelfHTCap Tree Davies
2024-01-24 22:44 ` [PATCH 11/18] Staging: rtl8192e: Fix paren alignment for rtllib_disable_net_monitor_mode() Tree Davies
2024-01-24 22:44 ` [PATCH 12/18] Staging: rtl8192e: Fixup if statement broken across multiple lines Tree Davies
2024-01-24 22:44 ` [PATCH 13/18] Staging: rtl8192e: Remove unecessary blank line Tree Davies
2024-01-24 22:44 ` [PATCH 14/18] Staging: rtl8192e: Fix if statement alignment with open parenthesis Tree Davies
2024-01-24 22:44 ` [PATCH 15/18] Staging: rtl8192e: Rename variable Octet Tree Davies
2024-01-24 22:44 ` [PATCH 16/18] Staging: rtl8192e: Rename variable LpsIdleCount Tree Davies
2024-01-24 22:44 ` [PATCH 17/18] Staging: rtl8192e: Rename variable NumRecvBcnInPeriod Tree Davies
2024-01-24 22:44 ` [PATCH 18/18] Staging: rtl8192e: Rename variable bForcedBgMode Tree Davies
2024-01-26 18:23 ` [PATCH 00/18] Staging: rtl8192e: 18 Additional checkpatch fixes for rtllib_softmac.c Philipp Hortmann
2024-01-26 22:05 ` <Tree Davies
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=20240124224452.968724-10-tdavies@darkphysics.net \
--to=tdavies@darkphysics.net \
--cc=anjan@momi.ca \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=philipp.g.hortmann@gmail.com \
/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®