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

staging: rtl8732au: Remove some unused hal data pointers

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8a6f555f
......@@ -1727,11 +1727,8 @@ void rtl8723a_set_hal_ops(struct hal_ops *pHalFunc)
void rtl8723a_InitAntenna_Selection(struct rtw_adapter *padapter)
{
struct hal_data_8723a *pHalData;
u8 val;
pHalData = GET_HAL_DATA(padapter);
val = rtw_read8(padapter, REG_LEDCFG2);
/* Let 8051 take control antenna settting */
val |= BIT(7); /* DPDT_SEL_EN, 0x4C[23] */
......@@ -1740,11 +1737,8 @@ void rtl8723a_InitAntenna_Selection(struct rtw_adapter *padapter)
void rtl8723a_CheckAntenna_Selection(struct rtw_adapter *padapter)
{
struct hal_data_8723a *pHalData;
u8 val;
pHalData = GET_HAL_DATA(padapter);
val = rtw_read8(padapter, REG_LEDCFG2);
/* Let 8051 take control antenna settting */
if (!(val & BIT(7))) {
......@@ -1755,10 +1749,8 @@ void rtl8723a_CheckAntenna_Selection(struct rtw_adapter *padapter)
void rtl8723a_DeinitAntenna_Selection(struct rtw_adapter *padapter)
{
struct hal_data_8723a *pHalData;
u8 val;
pHalData = GET_HAL_DATA(padapter);
val = rtw_read8(padapter, REG_LEDCFG2);
/* Let 8051 take control antenna settting */
val &= ~BIT(7); /* DPDT_SEL_EN, clear 0x4C[23] */
......
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