ath9k: split ar5008_hw_spur_mitigate and reuse common code in ar9002_hw_spur_mitigate.
authorOleksij Rempel <linux@rempel-privat.de>
Sun, 17 May 2015 19:49:19 +0000 (21:49 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 26 May 2015 11:02:45 +0000 (14:02 +0300)
commitf911085ffa8863c62344876e0ab6073e4258c246
tree2d4e0c571efc4a861fc32b6e1cee6076186ecc20
parent1277fa2ab2f9a624a4b0177119ca13b5fd65edd0
ath9k: split ar5008_hw_spur_mitigate and reuse common code in ar9002_hw_spur_mitigate.

[ar5008 and ar9002]_hw_spur_mitigate have big portion of identical code.
This patch will move common part of ar5008_hw_spur_mitigate to
ar5008_hw_cmn_spur_mitigate and reuse it in ar9002_hw_spur_mitigate.

As noticed by Joe Perches I reuse ar9002_hw_spur_mitigate (const) version of
declarations for pilot_mask_reg and chan_mask_reg.

There should be no other difference with original code.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath9k/ar5008_phy.c
drivers/net/wireless/ath/ath9k/ar9002_phy.c
drivers/net/wireless/ath/ath9k/hw.h