ath9k_hw: remove ath9k_hw_ani_setup and its variables
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2013 17:51:57 +0000 (18:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 21:05:31 +0000 (16:05 -0500)
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>
drivers/net/wireless/ath/ath9k/ani.c
drivers/net/wireless/ath/ath9k/ani.h
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h

index e09ec40ce71ab6c25bd801a0661c61f446496aed..2978287911677fba9c23a6c511cf9d11e15d5723 100644 (file)
@@ -489,23 +489,6 @@ void ath9k_hw_disable_mib_counters(struct ath_hw *ah)
 }
 EXPORT_SYMBOL(ath9k_hw_disable_mib_counters);
 
-void ath9k_hw_ani_setup(struct ath_hw *ah)
-{
-       int i;
-
-       static const int totalSizeDesired[] = { -55, -55, -55, -55, -62 };
-       static const int coarseHigh[] = { -14, -14, -14, -14, -12 };
-       static const int coarseLow[] = { -64, -64, -64, -64, -70 };
-       static const int firpwr[] = { -78, -78, -78, -78, -80 };
-
-       for (i = 0; i < 5; i++) {
-               ah->totalSizeDesired[i] = totalSizeDesired[i];
-               ah->coarse_high[i] = coarseHigh[i];
-               ah->coarse_low[i] = coarseLow[i];
-               ah->firpwr[i] = firpwr[i];
-       }
-}
-
 void ath9k_hw_ani_init(struct ath_hw *ah)
 {
        struct ath_common *common = ath9k_hw_common(ah);
index 1485bf5e3518851eab0e2f6531af8f5ed7118824..385bdba8ae506cac9b180d4969b6e2e9e17388d6 100644 (file)
@@ -147,7 +147,6 @@ struct ar5416Stats {
 
 void ath9k_enable_mib_counters(struct ath_hw *ah);
 void ath9k_hw_disable_mib_counters(struct ath_hw *ah);
-void ath9k_hw_ani_setup(struct ath_hw *ah);
 void ath9k_hw_ani_init(struct ath_hw *ah);
 
 #endif /* ANI_H */
index 0d84c1cd354f167d9f01ca7d00faa27f8424814f..42cf3c7f1e25bd29b23ec1c64dad10339b4d2416 100644 (file)
@@ -549,10 +549,8 @@ static int ath9k_hw_post_init(struct ath_hw *ah)
                ah->eep_ops->get_eeprom_ver(ah),
                ah->eep_ops->get_eeprom_rev(ah));
 
-       if (ah->config.enable_ani) {
-               ath9k_hw_ani_setup(ah);
+       if (ah->config.enable_ani)
                ath9k_hw_ani_init(ah);
-       }
 
        return 0;
 }
index 13b97e713f9b8e4e11239d1d227f876e894f7005..0a3a1af007f74708dafccffc107f3f4981f9f1e5 100644 (file)
@@ -864,10 +864,6 @@ struct ath_hw {
        /* ANI */
        u32 proc_phyerr;
        u32 aniperiod;
-       int totalSizeDesired[5];
-       int coarse_high[5];
-       int coarse_low[5];
-       int firpwr[5];
        enum ath9k_ani_cmd ani_function;
        u32 ani_skip_count;
 
This page took 0.034698 seconds and 5 git commands to generate.