* [PATCH v2] staging: rtl8723bs: fix line length in rtw_pwrctrl.c
@ 2026-03-09 20:21 Ayan Mahmood
2026-03-09 21:11 ` Ethan Tidmore
0 siblings, 1 reply; 2+ messages in thread
From: Ayan Mahmood @ 2026-03-09 20:21 UTC (permalink / raw)
To: gregkh; +Cc: ethantidmore06, linux-staging, linux-kernel, Ayan Mahmood
Refactor lines exceeding 100 characters in rtw_pwrctrl.c to
comply with kernel coding style as noted in the driver TODO.
Signed-off-by: Ayan Mahmood <ayanmahmood249@gmail.com>
---
v2:
- Rebase on staging-testing branch as requested
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
index 666e241704d9..568b4301b7cb 100644
--- a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
+++ b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
@@ -331,7 +331,8 @@ static u8 PS_RDY_CHECK(struct adapter *padapter)
return true;
}
-void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_ant_mode, const char *msg)
+void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode,
+ u8 smart_ps, u8 bcn_ant_mode, const char *msg)
{
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
@@ -359,7 +360,8 @@ void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_a
hal_btcoex_LpsNotify(padapter, ps_mode);
}
} else {
- if ((PS_RDY_CHECK(padapter) && check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE)) ||
+ if ((PS_RDY_CHECK(padapter) &&
+ check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE)) ||
((hal_btcoex_IsBtControlLps(padapter)) && (hal_btcoex_IsLpsOn(padapter)))
) {
u8 pslv;
@@ -452,7 +454,8 @@ void LPS_Enter(struct adapter *padapter, const char *msg)
if (pwrpriv->pwr_mode == PS_MODE_ACTIVE) {
scnprintf(buf, sizeof(buf), "WIFI-%s", msg);
pwrpriv->bpower_saving = true;
- rtw_set_ps_mode(padapter, pwrpriv->power_mgnt, padapter->registrypriv.smart_ps, 0, buf);
+ rtw_set_ps_mode(padapter, pwrpriv->power_mgnt,
+ padapter->registrypriv.smart_ps, 0, buf);
}
} else
pwrpriv->LpsIdleCount++;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH v2] staging: rtl8723bs: fix line length in rtw_pwrctrl.c
2026-03-09 20:21 [PATCH v2] staging: rtl8723bs: fix line length in rtw_pwrctrl.c Ayan Mahmood
@ 2026-03-09 21:11 ` Ethan Tidmore
0 siblings, 0 replies; 2+ messages in thread
From: Ethan Tidmore @ 2026-03-09 21:11 UTC (permalink / raw)
To: Ayan Mahmood, gregkh; +Cc: ethantidmore06, linux-staging, linux-kernel
On Mon Mar 9, 2026 at 3:21 PM CDT, Ayan Mahmood wrote:
> Refactor lines exceeding 100 characters in rtw_pwrctrl.c to
> comply with kernel coding style as noted in the driver TODO.
>
> Signed-off-by: Ayan Mahmood <ayanmahmood249@gmail.com>
...
> hal_btcoex_LpsNotify(padapter, ps_mode);
> }
> } else {
> - if ((PS_RDY_CHECK(padapter) && check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE)) ||
> + if ((PS_RDY_CHECK(padapter) &&
> + check_fwstate(&padapter->mlmepriv, WIFI_ASOC_STATE)) ||
> ((hal_btcoex_IsBtControlLps(padapter)) && (hal_btcoex_IsLpsOn(padapter)))
> ) {
Go ahead and put the ) { in the correct spot:
((hal_btcoex_IsBtControlLps(padapter)) && (hal_btcoex_IsLpsOn(padapter)))) {
Thanks,
ET
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-03-09 21:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-03-09 20:21 [PATCH v2] staging: rtl8723bs: fix line length in rtw_pwrctrl.c Ayan Mahmood
2026-03-09 21:11 ` Ethan Tidmore
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®