mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-23 15:20:35 -05:00
staging: rtl8723bs: Remove function pointer GetHalDefVarHandler
Remove function pointer GetHalDefVarHandler and use GetHalDefVar8723BSDIO directly to increase readability. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/fc3d7390305b474e7149c087ad6e065d883e8447.1730619982.git.philipp.g.hortmann@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c789ba02c4
commit
42ccc3bd8d
@@ -130,9 +130,7 @@ u8 rtw_hal_set_def_var(struct adapter *padapter, enum hal_def_variable eVariable
|
||||
|
||||
u8 rtw_hal_get_def_var(struct adapter *padapter, enum hal_def_variable eVariable, void *pValue)
|
||||
{
|
||||
if (padapter->HalFunc.GetHalDefVarHandler)
|
||||
return padapter->HalFunc.GetHalDefVarHandler(padapter, eVariable, pValue);
|
||||
return _FAIL;
|
||||
return GetHalDefVar8723BSDIO(padapter, eVariable, pValue);
|
||||
}
|
||||
|
||||
void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet)
|
||||
|
||||
@@ -1219,7 +1219,7 @@ void SetHwRegWithBuf8723B(struct adapter *padapter, u8 variable, u8 *pbuf, int l
|
||||
/* Description: */
|
||||
/* Query setting of specified variable. */
|
||||
/* */
|
||||
static u8 GetHalDefVar8723BSDIO(
|
||||
u8 GetHalDefVar8723BSDIO(
|
||||
struct adapter *Adapter, enum hal_def_variable eVariable, void *pValue
|
||||
)
|
||||
{
|
||||
@@ -1259,7 +1259,6 @@ void rtl8723bs_set_hal_ops(struct adapter *padapter)
|
||||
|
||||
rtl8723b_set_hal_ops(pHalFunc);
|
||||
|
||||
pHalFunc->GetHalDefVarHandler = &GetHalDefVar8723BSDIO;
|
||||
pHalFunc->SetHalDefVarHandler = &SetHalDefVar8723BSDIO;
|
||||
|
||||
pHalFunc->hal_xmit = &rtl8723bs_hal_xmit;
|
||||
|
||||
@@ -170,7 +170,6 @@ struct hal_ops {
|
||||
void (*hal_dm_watchdog)(struct adapter *padapter);
|
||||
void (*hal_dm_watchdog_in_lps)(struct adapter *padapter);
|
||||
|
||||
u8 (*GetHalDefVarHandler)(struct adapter *padapter, enum hal_def_variable eVariable, void *pValue);
|
||||
u8 (*SetHalDefVarHandler)(struct adapter *padapter, enum hal_def_variable eVariable, void *pValue);
|
||||
|
||||
void (*SetHalODMVarHandler)(struct adapter *padapter, enum hal_odm_variable eVariable, void *pValue1, bool bSet);
|
||||
@@ -316,4 +315,5 @@ s32 rtw_hal_fill_h2c_cmd(struct adapter *, u8 ElementID, u32 CmdLen, u8 *pCmdBuf
|
||||
void SetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val);
|
||||
void GetHwReg8723BS(struct adapter *padapter, u8 variable, u8 *val);
|
||||
void SetHwRegWithBuf8723B(struct adapter *padapter, u8 variable, u8 *pbuf, int len);
|
||||
u8 GetHalDefVar8723BSDIO(struct adapter *Adapter, enum hal_def_variable eVariable, void *pValue);
|
||||
#endif /* __HAL_INTF_H__ */
|
||||
|
||||
Reference in New Issue
Block a user