Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: Rename variables

Rename the variable `mediaStatus` to `media_status` and variable
`lpsVal` to `lps_val` to adhere to Linux kernel coding
standards by using snake_case instead of CamelCase.

Fixes checkpatch.pl warning:
CHECK: Avoid CamelCase: <mediaStatus>
CHECK: Avoid CamelCase: <lpsVal>

Signed-off-by: Erick Karanja <karanja99erick@gmail.com>
Link: https://lore.kernel.org/r/20250326132649.22055-1-karanja99erick@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Erick Karanja and committed by
Greg Kroah-Hartman
d486f2e0 9f61589a

+6 -6
+6 -6
drivers/staging/rtl8723bs/core/rtw_btcoex.c
··· 8 8 #include <rtw_btcoex.h> 9 9 #include <hal_btcoex.h> 10 10 11 - void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 mediaStatus) 11 + void rtw_btcoex_MediaStatusNotify(struct adapter *padapter, u8 media_status) 12 12 { 13 - if ((mediaStatus == RT_MEDIA_CONNECT) 13 + if ((media_status == RT_MEDIA_CONNECT) 14 14 && (check_fwstate(&padapter->mlmepriv, WIFI_AP_STATE) == true)) { 15 15 rtw_hal_set_hwreg(padapter, HW_VAR_DL_RSVD_PAGE, NULL); 16 16 } 17 17 18 - hal_btcoex_MediaStatusNotify(padapter, mediaStatus); 18 + hal_btcoex_MediaStatusNotify(padapter, media_status); 19 19 } 20 20 21 21 void rtw_btcoex_HaltNotify(struct adapter *padapter) ··· 52 52 void rtw_btcoex_LPS_Enter(struct adapter *padapter) 53 53 { 54 54 struct pwrctrl_priv *pwrpriv; 55 - u8 lpsVal; 55 + u8 lps_val; 56 56 57 57 58 58 pwrpriv = adapter_to_pwrctl(padapter); 59 59 60 60 pwrpriv->bpower_saving = true; 61 - lpsVal = hal_btcoex_LpsVal(padapter); 62 - rtw_set_ps_mode(padapter, PS_MODE_MIN, 0, lpsVal, "BTCOEX"); 61 + lps_val = hal_btcoex_LpsVal(padapter); 62 + rtw_set_ps_mode(padapter, PS_MODE_MIN, 0, lps_val, "BTCOEX"); 63 63 } 64 64 65 65 void rtw_btcoex_LPS_Leave(struct adapter *padapter)