Commit 44e621c7 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove HAL wrappers around read_chip_version

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5d9edb56
...@@ -28,12 +28,6 @@ void rtw_hal_chip_configure23a(struct rtw_adapter *padapter) ...@@ -28,12 +28,6 @@ void rtw_hal_chip_configure23a(struct rtw_adapter *padapter)
padapter->HalFunc.intf_chip_configure(padapter); padapter->HalFunc.intf_chip_configure(padapter);
} }
void rtw_hal_read_chip_version23a(struct rtw_adapter *padapter)
{
if (padapter->HalFunc.read_chip_version)
padapter->HalFunc.read_chip_version(padapter);
}
void rtw_hal_free_data23a(struct rtw_adapter *padapter) void rtw_hal_free_data23a(struct rtw_adapter *padapter)
{ {
if (padapter->HalFunc.free_hal_data) if (padapter->HalFunc.free_hal_data)
......
...@@ -1387,7 +1387,7 @@ Hal_EfusePgPacketWrite_BT(struct rtw_adapter *pAdapter, ...@@ -1387,7 +1387,7 @@ Hal_EfusePgPacketWrite_BT(struct rtw_adapter *pAdapter,
return true; return true;
} }
static struct hal_version ReadChipVersion8723A(struct rtw_adapter *padapter) void rtl8723a_read_chip_version(struct rtw_adapter *padapter)
{ {
u32 value32; u32 value32;
struct hal_version ChipVersion; struct hal_version ChipVersion;
...@@ -1433,13 +1433,6 @@ static struct hal_version ReadChipVersion8723A(struct rtw_adapter *padapter) ...@@ -1433,13 +1433,6 @@ static struct hal_version ReadChipVersion8723A(struct rtw_adapter *padapter)
pHalData->rf_type = RF_1T1R; pHalData->rf_type = RF_1T1R;
MSG_8723A("RF_Type is %x!!\n", pHalData->rf_type); MSG_8723A("RF_Type is %x!!\n", pHalData->rf_type);
return ChipVersion;
}
static void rtl8723a_read_chip_version(struct rtw_adapter *padapter)
{
ReadChipVersion8723A(padapter);
} }
/* */ /* */
...@@ -1723,8 +1716,6 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc) ...@@ -1723,8 +1716,6 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
{ {
pHalFunc->free_hal_data = &rtl8723a_free_hal_data; pHalFunc->free_hal_data = &rtl8723a_free_hal_data;
pHalFunc->read_chip_version = &rtl8723a_read_chip_version;
pHalFunc->set_bwmode_handler = &PHY_SetBWMode23a8723A; pHalFunc->set_bwmode_handler = &PHY_SetBWMode23a8723A;
pHalFunc->set_channel_handler = &PHY_SwChnl8723A; pHalFunc->set_channel_handler = &PHY_SwChnl8723A;
......
...@@ -78,8 +78,6 @@ struct hal_ops { ...@@ -78,8 +78,6 @@ struct hal_ops {
void (*InitSwLeds)(struct rtw_adapter *padapter); void (*InitSwLeds)(struct rtw_adapter *padapter);
void (*DeInitSwLeds)(struct rtw_adapter *padapter); void (*DeInitSwLeds)(struct rtw_adapter *padapter);
void (*read_chip_version)(struct rtw_adapter *padapter);
void (*intf_chip_configure)(struct rtw_adapter *padapter); void (*intf_chip_configure)(struct rtw_adapter *padapter);
void (*enable_interrupt)(struct rtw_adapter *padapter); void (*enable_interrupt)(struct rtw_adapter *padapter);
...@@ -189,8 +187,6 @@ uint rtw_hal_deinit23a(struct rtw_adapter *padapter); ...@@ -189,8 +187,6 @@ uint rtw_hal_deinit23a(struct rtw_adapter *padapter);
void rtw_hal_stop(struct rtw_adapter *padapter); void rtw_hal_stop(struct rtw_adapter *padapter);
void rtw_hal_chip_configure23a(struct rtw_adapter *padapter); void rtw_hal_chip_configure23a(struct rtw_adapter *padapter);
void rtw_hal_read_chip_info23a(struct rtw_adapter *padapter);
void rtw_hal_read_chip_version23a(struct rtw_adapter *padapter);
u8 rtw_hal_set_def_var23a(struct rtw_adapter *padapter, u8 rtw_hal_set_def_var23a(struct rtw_adapter *padapter,
enum hal_def_variable eVariable, enum hal_def_variable eVariable,
......
...@@ -547,6 +547,7 @@ s32 c2h_id_filter_ccx_8723a(u8 id); ...@@ -547,6 +547,7 @@ s32 c2h_id_filter_ccx_8723a(u8 id);
s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt); s32 c2h_handler_8723a(struct rtw_adapter *padapter, struct c2h_evt_hdr *c2h_evt);
void rtl8723a_read_adapter_info(struct rtw_adapter *Adapter); void rtl8723a_read_adapter_info(struct rtw_adapter *Adapter);
void rtl8723a_read_chip_version(struct rtw_adapter *padapter);
void rtl8723a_notch_filter(struct rtw_adapter *adapter, bool enable); void rtl8723a_notch_filter(struct rtw_adapter *adapter, bool enable);
#endif #endif
...@@ -626,7 +626,7 @@ static struct rtw_adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, ...@@ -626,7 +626,7 @@ static struct rtw_adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
rtl8723au_set_intf_ops(padapter); rtl8723au_set_intf_ops(padapter);
/* step read_chip_version */ /* step read_chip_version */
rtw_hal_read_chip_version23a(padapter); rtl8723a_read_chip_version(padapter);
/* step usb endpoint mapping */ /* step usb endpoint mapping */
rtw_hal_chip_configure23a(padapter); rtw_hal_chip_configure23a(padapter);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment