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)
commitea6f792b2b893249e0eeffdb3fe0ea191eaf80d7
tree1e306360812654cd4988b09ea01ab8eb53c8cf37
parent21bd6ea3116998e429dad796bce785e18df39daa
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