mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
staging: rtl8723bs: Remove function pointer enable_interrupt
Remove function pointer enable_interrupt and use EnableInterrupt8723BSdio directly to increase readability. Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/728827e155bdcd9951683e485d789d60bc203815.1727966761.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
babb045cc3
commit
4178941300
@@ -146,8 +146,7 @@ void rtw_hal_set_odm_var(struct adapter *padapter, enum hal_odm_variable eVariab
|
||||
|
||||
void rtw_hal_enable_interrupt(struct adapter *padapter)
|
||||
{
|
||||
if (padapter->HalFunc.enable_interrupt)
|
||||
padapter->HalFunc.enable_interrupt(padapter);
|
||||
EnableInterrupt8723BSdio(padapter);
|
||||
}
|
||||
|
||||
void rtw_hal_disable_interrupt(struct adapter *padapter)
|
||||
|
||||
@@ -1259,7 +1259,6 @@ void rtl8723bs_set_hal_ops(struct adapter *padapter)
|
||||
|
||||
rtl8723b_set_hal_ops(pHalFunc);
|
||||
|
||||
pHalFunc->enable_interrupt = &EnableInterrupt8723BSdio;
|
||||
pHalFunc->disable_interrupt = &DisableInterrupt8723BSdio;
|
||||
pHalFunc->check_ips_status = &CheckIPSStatus;
|
||||
pHalFunc->SetHwRegHandler = &SetHwReg8723BS;
|
||||
|
||||
@@ -162,7 +162,6 @@ enum hal_intf_ps_func {
|
||||
typedef s32 (*c2h_id_filter)(u8 *c2h_evt);
|
||||
|
||||
struct hal_ops {
|
||||
void (*enable_interrupt)(struct adapter *padapter);
|
||||
void (*disable_interrupt)(struct adapter *padapter);
|
||||
u8 (*check_ips_status)(struct adapter *padapter);
|
||||
void (*set_channel_handler)(struct adapter *padapter, u8 channel);
|
||||
|
||||
Reference in New Issue
Block a user