Commit 03822782 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by Kalle Valo

ath9k: ar9271_hw_pa_cal: use REG_READ_ARRAY

insted of reading each register separatly
and waste 4ms on each operation, we can
use one shot read.
Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent a57cb45a
...@@ -440,8 +440,7 @@ static void ar9271_hw_pa_cal(struct ath_hw *ah, bool is_reset) ...@@ -440,8 +440,7 @@ static void ar9271_hw_pa_cal(struct ath_hw *ah, bool is_reset)
{ AR9285_AN_RF2G3, 0 }, { AR9285_AN_RF2G3, 0 },
}; };
for (i = 0; i < ARRAY_SIZE(regList); i++) REG_READ_ARRAY(ah, regList, ARRAY_SIZE(regList));
regList[i][1] = REG_READ(ah, regList[i][0]);
ENABLE_REG_RMW_BUFFER(ah); ENABLE_REG_RMW_BUFFER(ah);
/* 7834, b1=0 */ /* 7834, b1=0 */
......
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