mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
staging: r8188eu: remove init_default_value from hal_ops
Remove init_default_value from hal_ops and remove its wrapper rtw_hal_def_value_init(). Call rtl8188eu_init_default_value() directly instead Acked-by: Phillip Potter <phil@philpotter.co.uk> Signed-off-by: Michael Straube <straube.linux@gmail.com> Link: https://lore.kernel.org/r/20210904124033.14244-7-straube.linux@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
abba8c3d88
commit
965da82bce
@@ -6,12 +6,6 @@
|
||||
#include "../include/drv_types.h"
|
||||
#include "../include/hal_intf.h"
|
||||
|
||||
void rtw_hal_def_value_init(struct adapter *adapt)
|
||||
{
|
||||
if (adapt->HalFunc.init_default_value)
|
||||
adapt->HalFunc.init_default_value(adapt);
|
||||
}
|
||||
|
||||
void rtw_hal_free_data(struct adapter *adapt)
|
||||
{
|
||||
if (adapt->HalFunc.free_hal_data)
|
||||
|
||||
@@ -2196,7 +2196,7 @@ static void SetBeaconRelatedRegisters8188EUsb(struct adapter *adapt)
|
||||
rtw_write8(adapt, bcn_ctrl_reg, rtw_read8(adapt, bcn_ctrl_reg) | BIT(1));
|
||||
}
|
||||
|
||||
static void rtl8188eu_init_default_value(struct adapter *adapt)
|
||||
void rtl8188eu_init_default_value(struct adapter *adapt)
|
||||
{
|
||||
struct hal_data_8188e *haldata;
|
||||
struct pwrctrl_priv *pwrctrlpriv;
|
||||
@@ -2249,8 +2249,6 @@ void rtl8188eu_set_hal_ops(struct adapter *adapt)
|
||||
halfunc->InitSwLeds = &rtl8188eu_InitSwLeds;
|
||||
halfunc->DeInitSwLeds = &rtl8188eu_DeInitSwLeds;
|
||||
|
||||
halfunc->init_default_value = &rtl8188eu_init_default_value;
|
||||
|
||||
halfunc->SetHwRegHandler = &SetHwReg8188EU;
|
||||
halfunc->GetHwRegHandler = &GetHwReg8188EU;
|
||||
halfunc->GetHalDefVarHandler = &GetHalDefVar8188EUsb;
|
||||
|
||||
@@ -149,8 +149,6 @@ struct hal_ops {
|
||||
void (*dm_init)(struct adapter *padapter);
|
||||
void (*dm_deinit)(struct adapter *padapter);
|
||||
|
||||
void (*init_default_value)(struct adapter *padapter);
|
||||
|
||||
void (*enable_interrupt)(struct adapter *padapter);
|
||||
void (*disable_interrupt)(struct adapter *padapter);
|
||||
s32 (*interrupt_handler)(struct adapter *padapter);
|
||||
@@ -262,8 +260,7 @@ void rtl8188eu_set_hal_ops(struct adapter *padapter);
|
||||
|
||||
void rtl8188eu_interface_configure(struct adapter *adapt);
|
||||
void ReadAdapterInfo8188EU(struct adapter *Adapter);
|
||||
|
||||
void rtw_hal_def_value_init(struct adapter *padapter);
|
||||
void rtl8188eu_init_default_value(struct adapter *adapt);
|
||||
|
||||
void rtw_hal_free_data(struct adapter *padapter);
|
||||
|
||||
|
||||
@@ -782,7 +782,7 @@ static u8 rtw_init_default_value(struct adapter *padapter)
|
||||
rtw_update_registrypriv_dev_network(padapter);
|
||||
|
||||
/* hal_priv */
|
||||
rtw_hal_def_value_init(padapter);
|
||||
rtl8188eu_init_default_value(padapter);
|
||||
|
||||
/* misc. */
|
||||
padapter->bReadPortCancel = false;
|
||||
@@ -801,7 +801,7 @@ u8 rtw_reset_drv_sw(struct adapter *padapter)
|
||||
struct pwrctrl_priv *pwrctrlpriv = &padapter->pwrctrlpriv;
|
||||
|
||||
/* hal_priv */
|
||||
rtw_hal_def_value_init(padapter);
|
||||
rtl8188eu_init_default_value(padapter);
|
||||
padapter->bReadPortCancel = false;
|
||||
padapter->bWritePortCancel = false;
|
||||
padapter->bRxRSSIDisplay = 0;
|
||||
|
||||
Reference in New Issue
Block a user