summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/calib.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2010-04-15 23:38:56 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-04-16 21:43:30 +0200
commitaf6757e95efca3d5965a7d3d087190bef99ac45f (patch)
treefd3b05557befd01b1dc00f00ed61c8269b096a96 /drivers/net/wireless/ath/ath9k/calib.c
parentath9k_hw: move the AR9280 OLC temp comp to its own helper (diff)
downloadlinux-af6757e95efca3d5965a7d3d087190bef99ac45f.tar.xz
linux-af6757e95efca3d5965a7d3d087190bef99ac45f.zip
ath9k_hw: simplify OLC temp compensation for AR9002
We can do the family revision check on the top level caller. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/calib.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/calib.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ath9k/calib.c b/drivers/net/wireless/ath/ath9k/calib.c
index dae200c5fe0d..b44b3056c2fe 100644
--- a/drivers/net/wireless/ath/ath9k/calib.c
+++ b/drivers/net/wireless/ath/ath9k/calib.c
@@ -730,14 +730,6 @@ static void ar9280_hw_olc_temp_compensation(struct ath_hw *ah)
}
}
-static void ath9k_olc_temp_compensation(struct ath_hw *ah)
-{
- if (OLC_FOR_AR9287_10_LATER)
- ar9287_hw_olc_temp_compensation(ah);
- else
- ar9280_hw_olc_temp_compensation(ah);
-}
-
static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset)
{
u32 regVal;
@@ -969,8 +961,10 @@ static void ar9002_hw_pa_cal(struct ath_hw *ah, bool is_reset)
static void ar9002_hw_olc_temp_compensation(struct ath_hw *ah)
{
- if (OLC_FOR_AR9280_20_LATER || OLC_FOR_AR9287_10_LATER)
- ath9k_olc_temp_compensation(ah);
+ if (OLC_FOR_AR9287_10_LATER)
+ ar9287_hw_olc_temp_compensation(ah);
+ else if (OLC_FOR_AR9280_20_LATER)
+ ar9280_hw_olc_temp_compensation(ah);
}
bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,