提交 af6757e9 编写于 作者: L Luis R. Rodriguez 提交者: John W. Linville

ath9k_hw: simplify OLC temp compensation for AR9002

We can do the family revision check on the top level caller.
Signed-off-by: NLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 2b5facfe
...@@ -730,14 +730,6 @@ static void ar9280_hw_olc_temp_compensation(struct ath_hw *ah) ...@@ -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) static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset)
{ {
u32 regVal; u32 regVal;
...@@ -969,8 +961,10 @@ static void ar9002_hw_pa_cal(struct ath_hw *ah, bool is_reset) ...@@ -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) static void ar9002_hw_olc_temp_compensation(struct ath_hw *ah)
{ {
if (OLC_FOR_AR9280_20_LATER || OLC_FOR_AR9287_10_LATER) if (OLC_FOR_AR9287_10_LATER)
ath9k_olc_temp_compensation(ah); 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, bool ath9k_hw_calibrate(struct ath_hw *ah, struct ath9k_channel *chan,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册