ath9k_hw: move the AR9280 OLC temp comp to its own helper

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Luis R. Rodriguez 2010-04-15 17:38:55 -04:00 committed by John W. Linville
parent 80b99932fd
commit 2b5facfe76

View file

@ -700,14 +700,11 @@ static void ar9287_hw_olc_temp_compensation(struct ath_hw *ah)
}
}
static void ath9k_olc_temp_compensation(struct ath_hw *ah)
static void ar9280_hw_olc_temp_compensation(struct ath_hw *ah)
{
u32 rddata, i;
int delta, currPDADC, regval;
if (OLC_FOR_AR9287_10_LATER) {
ar9287_hw_olc_temp_compensation(ah);
} else {
rddata = REG_READ(ah, AR_PHY_TX_PWRCTRL4);
currPDADC = MS(rddata, AR_PHY_TX_PWRCTRL_PD_AVG_OUT);
@ -731,7 +728,14 @@ static void ath9k_olc_temp_compensation(struct ath_hw *ah)
AR_PHY_TX_GAIN, regval);
}
}
}
}
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)