staging: r8188eu: remove SetHalDefVar8188EUsb()
PATCH 1/1 staging: r8188eu: remove SetHalDefVar8188EUsb()
In SetHalDefVar8188EUsb() there is only the case HAL_DEF_DBG_DM_FUNC. Move its functionality to a new static function in ioctl_linux.c and remove SetHalDefVar8188EUsb(). This is part of the ongoing effort to get rid of the unwanted hal layer.
Signed-off-by Michael Straube <[email protected]>
--- drivers/staging/r8188eu/hal/usb_halinit.c | 29 ------------- drivers/staging/r8188eu/include/hal_intf.h | 6 --- drivers/staging/r8188eu/os_dep/ioctl_linux.c | 43 ++++++++++++++++---- 3 files changed, 34 insertions(+), 44 deletions(-)
drivers/staging/r8188eu/hal/usb_halinit.c +0 -29
@@ -1194,35 +1194,6 @@ void SetHwReg8188EU(struct adapter *Adapter, u8 variable, u8 *val) } -/* Change default setting of specified variable. */ -void SetHalDefVar8188EUsb (struct adapter *Adapter,enum hal_def_variable eVariable,void *pValue) -{ -struct hal_data_8188e *haldata = &Adapter->haldata; - -switch (eVariable) { -case HAL_DEF_DBG_DM_FUNC : - { -u8 dm_func = *((u8 *)pValue); -struct odm_dm_struct *podmpriv = &haldata->odmpriv; - -if (dm_func ==0 ) {/* disable all dynamic func */ - podmpriv->SupportAbility =DYNAMIC_FUNC_DISABLE ; - }else if (dm_func ==1 ) {/* disable DIG */ - podmpriv->SupportAbility &= (~DYNAMIC_BB_DIG ); - }else if (dm_func ==6 ) {/* turn on all dynamic func */ -if (!(podmpriv->SupportAbility &DYNAMIC_BB_DIG )) { -struct rtw_dig *pDigTable = &podmpriv->DM_DigTable; - pDigTable->CurIGValue =rtw_read8 (Adapter,0xc50 ); - } - podmpriv->SupportAbility =DYNAMIC_ALL_FUNC_ENABLE ; - } - } -break ; -default : -break ; - } -} -void UpdateHalRAMask8188EUsb (struct adapter *adapt,u32 mac_id,u8 rssi_level) {u8 init_rate =0 ;
drivers/staging/r8188eu/include/hal_intf.h +0 -6
@@ -27,10 +27,6 @@ enum hw_variables { HW_VAR_H2C_MEDIA_STATUS_RPT, }; -enum hal_def_variable { -HAL_DEF_DBG_DM_FUNC ,/* for dbg */ -}; -typedef s32 (*c2h_id_filter )(u8 id);#define is_boot_from_eeprom (adapter) (adapter->eeprompriv.EepromOrEfuse)
@@ -51,8 +47,6 @@ void UpdateHalRAMask8188EUsb(struct adapter *adapt, u32 mac_id, u8 rssi_level);int rtl8188e_IOL_exec_cmds_sync (struct adapter *adapter,struct xmit_frame *xmit_frame,u32 max_wating_ms,u32 bndy_cnt); -void SetHalDefVar8188EUsb (struct adapter *Adapter,enum hal_def_variable eVariable,void *pValue); -unsigned int rtl8188eu_inirp_init (struct adapter *Adapter);void SetHwReg8188EU (struct adapter *Adapter,u8 variable,u8 *val);
drivers/staging/r8188eu/os_dep/ioctl_linux.c +34 -9
55 lines not on this page · raw message
Signature · 1 line
2.35.1