Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath9k_hw: remove ath9k_hw_ani_setup and its variables

They are no longer needed for ANI functionality

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Felix Fietkau and committed by
John W. Linville
f5ffe23a 0166b4be

+1 -25
-17
drivers/net/wireless/ath/ath9k/ani.c
··· 489 489 } 490 490 EXPORT_SYMBOL(ath9k_hw_disable_mib_counters); 491 491 492 - void ath9k_hw_ani_setup(struct ath_hw *ah) 493 - { 494 - int i; 495 - 496 - static const int totalSizeDesired[] = { -55, -55, -55, -55, -62 }; 497 - static const int coarseHigh[] = { -14, -14, -14, -14, -12 }; 498 - static const int coarseLow[] = { -64, -64, -64, -64, -70 }; 499 - static const int firpwr[] = { -78, -78, -78, -78, -80 }; 500 - 501 - for (i = 0; i < 5; i++) { 502 - ah->totalSizeDesired[i] = totalSizeDesired[i]; 503 - ah->coarse_high[i] = coarseHigh[i]; 504 - ah->coarse_low[i] = coarseLow[i]; 505 - ah->firpwr[i] = firpwr[i]; 506 - } 507 - } 508 - 509 492 void ath9k_hw_ani_init(struct ath_hw *ah) 510 493 { 511 494 struct ath_common *common = ath9k_hw_common(ah);
-1
drivers/net/wireless/ath/ath9k/ani.h
··· 147 147 148 148 void ath9k_enable_mib_counters(struct ath_hw *ah); 149 149 void ath9k_hw_disable_mib_counters(struct ath_hw *ah); 150 - void ath9k_hw_ani_setup(struct ath_hw *ah); 151 150 void ath9k_hw_ani_init(struct ath_hw *ah); 152 151 153 152 #endif /* ANI_H */
+1 -3
drivers/net/wireless/ath/ath9k/hw.c
··· 549 549 ah->eep_ops->get_eeprom_ver(ah), 550 550 ah->eep_ops->get_eeprom_rev(ah)); 551 551 552 - if (ah->config.enable_ani) { 553 - ath9k_hw_ani_setup(ah); 552 + if (ah->config.enable_ani) 554 553 ath9k_hw_ani_init(ah); 555 - } 556 554 557 555 return 0; 558 556 }
-4
drivers/net/wireless/ath/ath9k/hw.h
··· 864 864 /* ANI */ 865 865 u32 proc_phyerr; 866 866 u32 aniperiod; 867 - int totalSizeDesired[5]; 868 - int coarse_high[5]; 869 - int coarse_low[5]; 870 - int firpwr[5]; 871 867 enum ath9k_ani_cmd ani_function; 872 868 u32 ani_skip_count; 873 869