mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 22:57:21 -04:00
staging: rtl8723au: Remove sw led hal ops
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
10ce264649
commit
02d50c22bd
@@ -22,18 +22,6 @@
|
||||
#include <usb_hal.h>
|
||||
#include <rtl8723a_hal.h>
|
||||
|
||||
void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter)
|
||||
{
|
||||
if (padapter->HalFunc.InitSwLeds)
|
||||
padapter->HalFunc.InitSwLeds(padapter);
|
||||
}
|
||||
|
||||
void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter)
|
||||
{
|
||||
if (padapter->HalFunc.DeInitSwLeds)
|
||||
padapter->HalFunc.DeInitSwLeds(padapter);
|
||||
}
|
||||
|
||||
void rtw_hal_update_ra_mask23a(struct sta_info *psta, u8 rssi_level)
|
||||
{
|
||||
struct rtw_adapter *padapter;
|
||||
|
||||
@@ -1694,16 +1694,11 @@ int rtw_hal_deinit23a(struct rtw_adapter *padapter)
|
||||
|
||||
int rtl8723au_set_hal_ops(struct rtw_adapter *padapter)
|
||||
{
|
||||
struct hal_ops *pHalFunc = &padapter->HalFunc;
|
||||
|
||||
padapter->HalData = kzalloc(sizeof(struct hal_data_8723a), GFP_KERNEL);
|
||||
if (!padapter->HalData) {
|
||||
DBG_8723A("cannot alloc memory for HAL DATA\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
pHalFunc->InitSwLeds = NULL;
|
||||
pHalFunc->DeInitSwLeds = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -239,7 +239,6 @@ struct rtw_adapter {
|
||||
u32 setband;
|
||||
|
||||
void *HalData;
|
||||
struct hal_ops HalFunc;
|
||||
|
||||
s32 bDriverStopped;
|
||||
s32 bSurpriseRemoved;
|
||||
|
||||
@@ -60,11 +60,6 @@ enum hal_odm_variable {
|
||||
HAL_ODM_WIFI_DISPLAY_STATE,
|
||||
};
|
||||
|
||||
struct hal_ops {
|
||||
void (*InitSwLeds)(struct rtw_adapter *padapter);
|
||||
void (*DeInitSwLeds)(struct rtw_adapter *padapter);
|
||||
};
|
||||
|
||||
enum rt_eeprom_type {
|
||||
EEPROM_93C46,
|
||||
EEPROM_93C56,
|
||||
@@ -108,9 +103,6 @@ void rtw_hal_def_value_init23a(struct rtw_adapter *padapter);
|
||||
int pm_netdev_open23a(struct net_device *pnetdev, u8 bnormal);
|
||||
int rtw_resume_process23a(struct rtw_adapter *padapter);
|
||||
|
||||
void rtw_hal_sw_led_init23a(struct rtw_adapter *padapter);
|
||||
void rtw_hal_sw_led_deinit23a(struct rtw_adapter *padapter);
|
||||
|
||||
int rtw_hal_init23a(struct rtw_adapter *padapter);
|
||||
int rtw_hal_deinit23a(struct rtw_adapter *padapter);
|
||||
void rtw_hal_stop(struct rtw_adapter *padapter);
|
||||
|
||||
@@ -523,7 +523,6 @@ u8 rtw_init_drv_sw23a(struct rtw_adapter *padapter)
|
||||
ret8 = rtw_init_default_value(padapter);
|
||||
|
||||
rtl8723a_init_dm_priv(padapter);
|
||||
rtw_hal_sw_led_init23a(padapter);
|
||||
|
||||
rtw_sreset_init(padapter);
|
||||
|
||||
@@ -549,8 +548,6 @@ void rtw_cancel_all_timer23a(struct rtw_adapter *padapter)
|
||||
RT_TRACE(_module_os_intfs_c_, _drv_info_,
|
||||
("rtw_cancel_all_timer23a:cancel dynamic_chk_timer!\n"));
|
||||
|
||||
/* cancel sw led timer */
|
||||
rtw_hal_sw_led_deinit23a(padapter);
|
||||
RT_TRACE(_module_os_intfs_c_, _drv_info_,
|
||||
("rtw_cancel_all_timer23a:cancel DeInitSwLeds!\n"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user