diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2014-11-30 16:05:05 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-12-02 19:40:00 -0500 |
commit | 0e316c225100e68e082f57bf1959382f2e345648 (patch) | |
tree | dbced07802c67243ad9ad6aeb2b50df8ef4d0a7f | |
parent | 6e1c29fd9e10af8aff4f9fe628e1ca9d337e90a9 (diff) |
staging: rtl8723au: Fold _ps_open_RF23a() into rtl8723au_hal_init()
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/rtl8723au/hal/usb_halinit.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/staging/rtl8723au/hal/usb_halinit.c b/drivers/staging/rtl8723au/hal/usb_halinit.c index 6c6601332035..cd3f8ba16804 100644 --- a/drivers/staging/rtl8723au/hal/usb_halinit.c +++ b/drivers/staging/rtl8723au/hal/usb_halinit.c | |||
@@ -25,6 +25,10 @@ | |||
25 | 25 | ||
26 | #include <usb_ops.h> | 26 | #include <usb_ops.h> |
27 | 27 | ||
28 | static void phy_SsPwrSwitch92CU(struct rtw_adapter *Adapter, | ||
29 | enum rt_rf_power_state eRFPowerState, | ||
30 | int bRegSSPwrLvl); | ||
31 | |||
28 | static void | 32 | static void |
29 | _ConfigChipOutEP(struct rtw_adapter *pAdapter, u8 NumOutPipe) | 33 | _ConfigChipOutEP(struct rtw_adapter *pAdapter, u8 NumOutPipe) |
30 | { | 34 | { |
@@ -495,8 +499,6 @@ enum rt_rf_power_state RfOnOffDetect23a(struct rtw_adapter *pAdapter) | |||
495 | return rfpowerstate; | 499 | return rfpowerstate; |
496 | } | 500 | } |
497 | 501 | ||
498 | void _ps_open_RF23a(struct rtw_adapter *padapter); | ||
499 | |||
500 | int rtl8723au_hal_init(struct rtw_adapter *Adapter) | 502 | int rtl8723au_hal_init(struct rtw_adapter *Adapter) |
501 | { | 503 | { |
502 | u8 val8 = 0; | 504 | u8 val8 = 0; |
@@ -511,7 +513,9 @@ int rtl8723au_hal_init(struct rtw_adapter *Adapter) | |||
511 | Adapter->hw_init_completed = false; | 513 | Adapter->hw_init_completed = false; |
512 | 514 | ||
513 | if (Adapter->pwrctrlpriv.bkeepfwalive) { | 515 | if (Adapter->pwrctrlpriv.bkeepfwalive) { |
514 | _ps_open_RF23a(Adapter); | 516 | /* here call with bRegSSPwrLvl 1, bRegSSPwrLvl 2 |
517 | needs to be verified */ | ||
518 | phy_SsPwrSwitch92CU(Adapter, rf_on, 1); | ||
515 | 519 | ||
516 | if (pHalData->bIQKInitialized) { | 520 | if (pHalData->bIQKInitialized) { |
517 | rtl8723a_phy_iq_calibrate(Adapter, true); | 521 | rtl8723a_phy_iq_calibrate(Adapter, true); |
@@ -1027,12 +1031,6 @@ static void phy_SsPwrSwitch92CU(struct rtw_adapter *Adapter, | |||
1027 | 1031 | ||
1028 | } /* phy_PowerSwitch92CU */ | 1032 | } /* phy_PowerSwitch92CU */ |
1029 | 1033 | ||
1030 | void _ps_open_RF23a(struct rtw_adapter *padapter) | ||
1031 | { | ||
1032 | /* here call with bRegSSPwrLvl 1, bRegSSPwrLvl 2 needs to be verified */ | ||
1033 | phy_SsPwrSwitch92CU(padapter, rf_on, 1); | ||
1034 | } | ||
1035 | |||
1036 | static void CardDisableRTL8723U(struct rtw_adapter *Adapter) | 1034 | static void CardDisableRTL8723U(struct rtw_adapter *Adapter) |
1037 | { | 1035 | { |
1038 | u8 u1bTmp; | 1036 | u8 u1bTmp; |