staging: rtl8723au: Eliminate HW_VAR_DM_FLAG

Both the read and write calls were never used

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Jes Sorensen 2014-04-09 23:20:44 +02:00 committed by Greg Kroah-Hartman
parent 585eefb453
commit df09df24d0
3 changed files with 0 additions and 20 deletions

View file

@ -865,13 +865,6 @@ void rtl8723a_set_initial_gain(struct rtw_adapter *padapter, u32 rx_gain)
}
}
void rtl8723a_odm_support_ability_write(struct rtw_adapter *padapter, u32 val)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
pHalData->odmpriv.SupportAbility = val;
}
void rtl8723a_odm_support_ability_restore(struct rtw_adapter *padapter)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);

View file

@ -3132,17 +3132,12 @@ void hw_var_set_mlme_join(struct rtw_adapter *padapter, u8 type)
void SetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
{
struct hal_data_8723a *pHalData = GET_HAL_DATA(padapter);
u32 *val32 = (u32 *)val;
switch (variable) {
case HW_VAR_TXPAUSE:
rtl8723a_set_tx_pause(padapter, *val);
break;
case HW_VAR_DM_FLAG:
rtl8723a_odm_support_ability_write(padapter, *val32);
break;
case HW_VAR_EFUSE_BYTES:
pHalData->EfuseUsedBytes = *((u16 *) val);
break;
@ -3172,13 +3167,6 @@ void GetHwReg8723A(struct rtw_adapter *padapter, u8 variable, u8 *val)
*val = pHalData->rf_type;
break;
case HW_VAR_DM_FLAG:
{
struct dm_odm_t *podmpriv = &pHalData->odmpriv;
*((u32 *) val) = podmpriv->SupportAbility;
}
break;
case HW_VAR_FWLPS_RF_ON:
{
/* When we halt NIC, we should check if FW LPS is leave. */

View file

@ -39,7 +39,6 @@ enum HW_VARIABLES {
HW_VAR_INIT_RTS_RATE,
HW_VAR_TXPAUSE,
HW_VAR_RF_TYPE,
HW_VAR_DM_FLAG,
HW_VAR_CAM_READ,
HW_VAR_FWLPS_RF_ON,
HW_VAR_TDLS_WRCR,