staging: r8188eu: remove HW_VAR_DM_FLAG member of hw_variables enumeration
authorIvan Safonov <insafonov@gmail.com>
Sun, 18 Sep 2016 17:27:16 +0000 (00:27 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Sep 2016 11:33:49 +0000 (13:33 +0200)
rtw_hal_set_hwreg and rtw_hal_get_hwreg does not used
with HW_VAR_DM_FLAG parameter.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/usb_halinit.c
drivers/staging/rtl8188eu/include/hal_intf.h

index c4a8f415a7729befae0bc4cda1eb49334247a760..897e46954222e891ffa8d4017514992eba4244b6 100644 (file)
@@ -1498,9 +1498,6 @@ void rtw_hal_set_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
        case HW_VAR_SEC_CFG:
                usb_write8(Adapter, REG_SECCFG, *((u8 *)val));
                break;
-       case HW_VAR_DM_FLAG:
-               podmpriv->SupportAbility = *((u8 *)val);
-               break;
        case HW_VAR_DM_FUNC_OP:
                if (val[0])
                        podmpriv->BK_SupportAbility = podmpriv->SupportAbility;
@@ -1769,7 +1766,6 @@ void rtw_hal_set_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
 void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
 {
        struct hal_data_8188e   *haldata = GET_HAL_DATA(Adapter);
-       struct odm_dm_struct *podmpriv = &haldata->odmpriv;
 
        switch (variable) {
        case HW_VAR_BASIC_RATE:
@@ -1781,9 +1777,6 @@ void rtw_hal_get_hwreg(struct adapter *Adapter, u8 variable, u8 *val)
                /* BCN_VALID, BIT16 of REG_TDECTRL = BIT0 of REG_TDECTRL+2 */
                val[0] = (BIT(0) & usb_read8(Adapter, REG_TDECTRL+2)) ? true : false;
                break;
-       case HW_VAR_DM_FLAG:
-               val[0] = podmpriv->SupportAbility;
-               break;
        case HW_VAR_RF_TYPE:
                val[0] = haldata->rf_type;
                break;
index 0c0fa3551570b9d73ea43ebe2ef714e0b73c246d..fa032b0c12ffe8704d73b8ff9c5fb2a537e78e21 100644 (file)
@@ -58,7 +58,6 @@ enum hw_variables {
        HW_VAR_SEC_CFG,
        HW_VAR_BCN_VALID,
        HW_VAR_RF_TYPE,
-       HW_VAR_DM_FLAG,
        HW_VAR_DM_FUNC_OP,
        HW_VAR_DM_FUNC_SET,
        HW_VAR_DM_FUNC_CLR,