summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2015-03-22 19:29:52 +0100
committerKalle Valo <kvalo@codeaurora.org>2015-03-30 11:31:30 +0300
commit03822782e8293db08f28507b85588656ff02f354 (patch)
treed97b2b6ea88cbcb806c4e7ec1538cae5deacc431 /drivers/net/wireless
parenta57cb45a0a051601e14f81436b62750cc4f478c3 (diff)
downloadlinux-03822782e8293db08f28507b85588656ff02f354.tar.gz
linux-03822782e8293db08f28507b85588656ff02f354.tar.bz2
linux-03822782e8293db08f28507b85588656ff02f354.zip
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: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/ar9002_calib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar9002_calib.c b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
index 62a23149556d..50fcd343c41a 100644
--- a/drivers/net/wireless/ath/ath9k/ar9002_calib.c
+++ b/drivers/net/wireless/ath/ath9k/ar9002_calib.c
@@ -440,8 +440,7 @@ static void ar9271_hw_pa_cal(struct ath_hw *ah, bool is_reset)
{ AR9285_AN_RF2G3, 0 },
};
- for (i = 0; i < ARRAY_SIZE(regList); i++)
- regList[i][1] = REG_READ(ah, regList[i][0]);
+ REG_READ_ARRAY(ah, regList, ARRAY_SIZE(regList));
ENABLE_REG_RMW_BUFFER(ah);
/* 7834, b1=0 */