]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: introduce ath9k_hw_get_scaled_power helper
authorGabor Juhos <juhosg@openwrt.org>
Sat, 14 Apr 2012 20:01:58 +0000 (22:01 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Apr 2012 18:38:53 +0000 (14:38 -0400)
commite6bcd48d60c1ded5bd0fd42235e9e8316b889072
tree1e306360812654cd4988b09ea01ab8eb53c8cf37
parent1eae354897e174986d29cafdb365330e5c584dcb
ath9k: introduce ath9k_hw_get_scaled_power helper

The computation of the scaled power value in
various eeprom files uses identical code. Move
that code into a helper function and use that
instead of code duplication.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/eeprom.c
drivers/net/wireless/ath/ath9k/eeprom.h
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c