diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-10-03 17:07:16 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-06 20:26:01 (GMT) |
commit | 6497827f53eb90dcf30c5d6414c83238f722e8ae (patch) | |
tree | 0d62c5406b55c30158daf0421f4e075f287e0ba9 /drivers/net/wireless/ath/ath9k/hw-ops.h | |
parent | 373426cac0cbb7f762018127803dcd70838e2cdf (diff) | |
download | linux-fsl-qoriq-6497827f53eb90dcf30c5d6414c83238f722e8ae.tar.xz |
ath9k_hw: clean up calibration flags
The calibration actual calibration flags are only used by the per chip family
source files, so it makes more sense to define them in those files instead
of globally. That way the code has to test for less flags.
Also instead of using a separate callback for testing whether a particular
calibration type is supported, simply adjust ah->supp_cals in the calibration
init which is called right after the hardware reset, before any of the
calibrations are run.
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/hw-ops.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw-ops.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw-ops.h b/drivers/net/wireless/ath/ath9k/hw-ops.h index ffecbad..9c4dd0e 100644 --- a/drivers/net/wireless/ath/ath9k/hw-ops.h +++ b/drivers/net/wireless/ath/ath9k/hw-ops.h @@ -276,12 +276,6 @@ static inline void ath9k_hw_setup_calibration(struct ath_hw *ah, ath9k_hw_private_ops(ah)->setup_calibration(ah, currCal); } -static inline bool ath9k_hw_iscal_supported(struct ath_hw *ah, - enum ath9k_cal_types calType) -{ - return ath9k_hw_private_ops(ah)->iscal_supported(ah, calType); -} - static inline void ath9k_ani_reset(struct ath_hw *ah, bool is_scanning) { ath9k_hw_private_ops(ah)->ani_reset(ah, is_scanning); |