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 05/16] Staging: rtl8192e: Rename variable bPacketToSelf
Date: Sun, 8 Sep 2024 12:26:22 -0700 [thread overview]
Message-ID: <20240908192633.94144-6-tdavies@darkphysics.net> (raw)
In-Reply-To: <20240908192633.94144-1-tdavies@darkphysics.net>
Rename variable bPacketToSelf to packet_to_self
to fix checkpatch warning Avoid CamelCase.
Signed-off-by: Tree Davies <tdavies@darkphysics.net>
---
drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c | 10 +++++-----
drivers/staging/rtl8192e/rtllib.h | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
index a8bb2d3f7e9d..078e36962197 100644
--- a/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
+++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c
@@ -1172,7 +1172,7 @@ static void _rtl92e_query_rxphystatus(struct r8192_priv *priv,
memset(precord_stats, 0, sizeof(struct rtllib_rx_stats));
pstats->bPacketMatchBSSID = precord_stats->bPacketMatchBSSID =
bpacket_match_bssid;
- pstats->bPacketToSelf = precord_stats->bPacketToSelf = bpacket_toself;
+ pstats->packet_to_self = precord_stats->packet_to_self = bpacket_toself;
pstats->bIsCCK = precord_stats->bIsCCK = is_cck_rate;
pstats->bPacketBeacon = precord_stats->bPacketBeacon = bPacketBeacon;
pstats->bToSelfBA = precord_stats->bToSelfBA = bToSelfBA;
@@ -1370,7 +1370,7 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
if (!bcheck)
return;
- if (!prev_st->bIsCCK && prev_st->bPacketToSelf) {
+ if (!prev_st->bIsCCK && prev_st->packet_to_self) {
for (rfpath = RF90_PATH_A; rfpath < priv->num_total_rf_path; rfpath++) {
if (priv->stats.rx_rssi_percentage[rfpath] == 0) {
priv->stats.rx_rssi_percentage[rfpath] =
@@ -1416,7 +1416,7 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
if (prev_st->RxPWDBAll >= 3)
prev_st->RxPWDBAll -= 3;
}
- if (prev_st->bPacketToSelf || prev_st->bPacketBeacon ||
+ if (prev_st->packet_to_self || prev_st->bPacketBeacon ||
prev_st->bToSelfBA) {
if (priv->undecorated_smoothed_pwdb < 0)
priv->undecorated_smoothed_pwdb = prev_st->RxPWDBAll;
@@ -1437,7 +1437,7 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
}
if (prev_st->SignalQuality != 0) {
- if (prev_st->bPacketToSelf || prev_st->bPacketBeacon ||
+ if (prev_st->packet_to_self || prev_st->bPacketBeacon ||
prev_st->bToSelfBA) {
if (slide_evm_statistics++ >= PHY_RSSI_SLID_WIN_MAX) {
slide_evm_statistics = PHY_RSSI_SLID_WIN_MAX;
@@ -1458,7 +1458,7 @@ static void _rtl92e_process_phyinfo(struct r8192_priv *priv, u8 *buffer,
priv->stats.last_signal_strength_inpercent = tmp_val;
}
- if (prev_st->bPacketToSelf ||
+ if (prev_st->packet_to_self ||
prev_st->bPacketBeacon ||
prev_st->bToSelfBA) {
for (ij = 0; ij < 2; ij++) {
diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h
index 95e1c81bf132..f444e85a6264 100644
--- a/drivers/staging/rtl8192e/rtllib.h
+++ b/drivers/staging/rtl8192e/rtllib.h
@@ -484,7 +484,7 @@ struct rtllib_rx_stats {
s8 RxMIMOSignalQuality[2];
bool bPacketMatchBSSID;
bool bIsCCK;
- bool bPacketToSelf;
+ bool packet_to_self;
bool bPacketBeacon;
bool bToSelfBA;
};
--
2.30.2
next prev parent reply other threads:[~2024-09-08 19:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-08 19:26 [PATCH 00/16] Staging: rtl8192e: Cleanup even more camelcase variable names Tree Davies
2024-09-08 19:26 ` [PATCH 01/16] Staging: rtl8192e: Rename variable pReorderEntry Tree Davies
2024-09-08 19:26 ` [PATCH 02/16] Staging: rtl8192e: Rename variable SeqNum Tree Davies
2024-09-08 19:26 ` [PATCH 03/16] Staging: rtl8192e: Rename variable SignalStrength Tree Davies
2024-09-08 19:26 ` [PATCH 04/16] Staging: rtl8192e: Rename variable pFrame Tree Davies
2024-09-08 19:26 ` Tree Davies [this message]
2024-09-08 19:26 ` [PATCH 06/16] Staging: rtl8192e: Rename variable Para1 Tree Davies
2024-09-08 19:26 ` [PATCH 07/16] Staging: rtl8192e: Rename variable Para2 Tree Davies
2024-09-08 19:26 ` [PATCH 08/16] Staging: rtl8192e: Rename variable ScanOperationBackupHandler Tree Davies
2024-09-08 19:26 ` [PATCH 09/16] Staging: rtl8192e: Rename variable Operation Tree Davies
2024-09-08 19:26 ` [PATCH 10/16] Staging: rtl8192e: Rename variable bAssoc Tree Davies
2024-09-08 19:26 ` [PATCH 11/16] Staging: rtl8192e: Rename variable SignalQuality Tree Davies
2024-09-08 19:26 ` [PATCH 12/16] Staging: rtl8192e: Rename variable isEncrypt Tree Davies
2024-09-08 19:26 ` [PATCH 13/16] Staging: rtl8192e: Rename variable nStuckCount Tree Davies
2024-09-08 19:26 ` [PATCH 14/16] Staging: rtl8192e: Rename variable bAddNewTs Tree Davies
2024-09-08 19:26 ` [PATCH 15/16] Staging: rtl8192e: Rename variable RxBufShift Tree Davies
2024-09-08 19:26 ` [PATCH 16/16] Staging: rtl8192e: Rename variable RxDrvInfoSize Tree Davies
2024-09-08 20:44 ` [PATCH 00/16] Staging: rtl8192e: Cleanup even more camelcase variable names Philipp Hortmann
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=20240908192633.94144-6-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®