staging: rtl8723au: Make direct calls for HW_VAR_SET_RPWM
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 9 Apr 2014 21:20:39 +0000 (23:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Apr 2014 15:29:07 +0000 (08:29 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_pwrctrl.c
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/include/hal_intf.h

index c2e86529047bbd3e5481398a050114b7b3e561b4..da6645e9b9fc1e37b9e4235cc4079f1e51ae0a73 100644 (file)
@@ -263,7 +263,7 @@ void rtw_set_rpwm23a(struct rtw_adapter *padapter, u8 pslv)
 
        pwrpriv->rpwm = pslv;
 
-       rtw_hal_set_hwreg23a(padapter, HW_VAR_SET_RPWM, (u8 *)(&rpwm));
+       rtl8723a_set_rpwm(padapter, rpwm);
 
        pwrpriv->tog += 0x80;
        pwrpriv->cpwm = pslv;
index 2b44b17acc705bd24cf8a999d61281cdab6cd2b7..0bbc56a95481164033962af6516b0cf38a62fae4 100644 (file)
@@ -1519,9 +1519,6 @@ static void rtl8723au_trigger_gpio_0(struct rtw_adapter *padapter)
 static void SetHwReg8723AU(struct rtw_adapter *Adapter, u8 variable, u8 *val)
 {
        switch (variable) {
-       case HW_VAR_SET_RPWM:
-               rtl8723a_set_rpwm(Adapter, *val);
-               break;
        case HW_VAR_TRIGGER_GPIO_0:
                rtl8723au_trigger_gpio_0(Adapter);
                break;
index f1cab544a44c5ca7af5f0b90d34fda0602a1c171..2d5ace57d83400e1a38b88cc80eab40803972dd0 100644 (file)
@@ -44,7 +44,6 @@ enum HW_VARIABLES {
        HW_VAR_DM_FUNC_SET,
        HW_VAR_DM_FUNC_CLR,
        HW_VAR_CAM_READ,
-       HW_VAR_SET_RPWM,
        HW_VAR_FWLPS_RF_ON,
        HW_VAR_TDLS_WRCR,
        HW_VAR_TDLS_INIT_CH_SEN,