]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k_hw: clean up calibration flags
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Oct 2010 17:07:16 +0000 (19:07 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 6 Oct 2010 20:26:01 +0000 (16:26 -0400)
commit4a02d5cd6f6db80187c945d6977e6eed8ec38be2
tree0d62c5406b55c30158daf0421f4e075f287e0ba9
parent9d9942834d6c87371fe4cf10d7d13ac808ce5df1
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>
drivers/net/wireless/ath/ath9k/ar9002_calib.c
drivers/net/wireless/ath/ath9k/ar9003_calib.c
drivers/net/wireless/ath/ath9k/calib.c
drivers/net/wireless/ath/ath9k/calib.h
drivers/net/wireless/ath/ath9k/hw-ops.h
drivers/net/wireless/ath/ath9k/hw.h