staging: rtl8723bs: fix unnamed parameters warning detected at checkpatch
PATCH v2 1/1 staging: rtl8723bs: fix unnamed parameters warning detected at checkpatch
Detected the following WARNING: function definition argument 'struct adapter *' should also have an identifier name. Add explicit names on those definitions.
Signed-off-by Rodrigo Gobbi <[email protected]>
---
Changelog:
v2: use adapter instead of padapter
v1: https://lore.kernel.org/all/[email protected]/
--- drivers/staging/rtl8723bs/include/hal_intf.h | 2 +- drivers/staging/rtl8723bs/include/rtw_btcoex.h | 10 +++++----- drivers/staging/rtl8723bs/include/rtw_pwrctrl.h | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-)
drivers/staging/rtl8723bs/include/hal_intf.h +1 -1
@@ -252,7 +252,7 @@ c2h_id_filter rtw_hal_c2h_id_filter_ccx(struct adapter *adapter);s32 rtw_hal_macid_sleep (struct adapter *padapter,u32 macid);s32 rtw_hal_macid_wakeup (struct adapter *padapter,u32 macid); -s32 rtw_hal_fill_h2c_cmd (struct adapter *,u8 ElementID,u32 CmdLen,u8 *pCmdBuffer); +s32 rtw_hal_fill_h2c_cmd (struct adapter *adapter,u8 ElementID,u32 CmdLen,u8 *pCmdBuffer);void SetHwReg8723BS (struct adapter *padapter,u8 variable,u8 *val);void GetHwReg8723BS (struct adapter *padapter,u8 variable,u8 *val);
drivers/staging/rtl8723bs/include/rtw_btcoex.h +5 -5
@@ -15,14 +15,14 @@#define PACKET_ARP 2#define PACKET_EAPOL 3 -void rtw_btcoex_MediaStatusNotify (struct adapter *,u8 mediaStatus); -void rtw_btcoex_HaltNotify (struct adapter *); +void rtw_btcoex_MediaStatusNotify (struct adapter *adapter,u8 mediaStatus); +void rtw_btcoex_HaltNotify (struct adapter *adapter);/* ================================================== */ /* Below Functions are called by BT-Coex */ /* ================================================== */ -void rtw_btcoex_RejectApAggregatedPacket (struct adapter *,u8 enable); -void rtw_btcoex_LPS_Enter (struct adapter *); -void rtw_btcoex_LPS_Leave (struct adapter *); +void rtw_btcoex_RejectApAggregatedPacket (struct adapter *adapter,u8 enable); +void rtw_btcoex_LPS_Enter (struct adapter *adapter); +void rtw_btcoex_LPS_Leave (struct adapter *adapter);#endif /* __RTW_BTCOEX_H__ */
drivers/staging/rtl8723bs/include/rtw_pwrctrl.h +2 -2
@@ -215,8 +215,8 @@ struct pwrctrl_priv {extern void rtw_init_pwrctrl_priv (struct adapter *adapter);extern void rtw_free_pwrctrl_priv (struct adapter *adapter); -s32 rtw_register_task_alive (struct adapter *,u32 task); -void rtw_unregister_task_alive (struct adapter *,u32 task); +s32 rtw_register_task_alive (struct adapter *adapter,u32 task); +void rtw_unregister_task_alive (struct adapter *adapter,u32 task);extern s32 rtw_register_tx_alive (struct adapter *padapter);extern void rtw_unregister_tx_alive (struct adapter *padapter);extern s32 rtw_register_cmd_alive (struct adapter *padapter);
Signature · 1 line
2.48.1