Skip to content

Commit 9c8ec99

Browse files
miaoqing-pankvalo
authored andcommitted
ath9k: use AR_SREV_9003_PCOEM to identify PCOEM chips
commit f49c90d ("ath9k: Add a macro to identify PCOEM chips") defined AR_SREV_9003_PCOEM macro, its more clear to use the macro instead of checking one by one. Also removed PCOEM chips checking in the callback of ar9003_hw_do_pcoem_manual_peak_cal() which only for PCOEM chips. Signed-off-by: Miaoqing Pan <[email protected]> Signed-off-by: Kalle Valo <[email protected]>
1 parent 27ae9cd commit 9c8ec99

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/net/wireless/ath/ath9k/ar9003_calib.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,9 +1311,6 @@ static void ar9003_hw_do_pcoem_manual_peak_cal(struct ath_hw *ah,
13111311
struct ath9k_hw_cal_data *caldata = ah->caldata;
13121312
int i;
13131313

1314-
if (!AR_SREV_9462(ah) && !AR_SREV_9565(ah) && !AR_SREV_9485(ah))
1315-
return;
1316-
13171314
if ((ah->caps.hw_caps & ATH9K_HW_CAP_RTT) && !run_rtt_cal)
13181315
return;
13191316

@@ -1707,7 +1704,7 @@ void ar9003_hw_attach_calib_ops(struct ath_hw *ah)
17071704
struct ath_hw_private_ops *priv_ops = ath9k_hw_private_ops(ah);
17081705
struct ath_hw_ops *ops = ath9k_hw_ops(ah);
17091706

1710-
if (AR_SREV_9485(ah) || AR_SREV_9462(ah) || AR_SREV_9565(ah))
1707+
if (AR_SREV_9003_PCOEM(ah))
17111708
priv_ops->init_cal = ar9003_hw_init_cal_pcoem;
17121709
else
17131710
priv_ops->init_cal = ar9003_hw_init_cal_soc;

0 commit comments

Comments
 (0)