ath9k: Cleanup EEPROM operations
PATCH 9/10 ath9k: Cleanup EEPROM operations
This patch removes the various function pointer assignments and unifies them in a single ops structure.
Signed-off-by Sujith <[email protected]>
--- drivers/net/wireless/ath9k/calib.c | 4 +- drivers/net/wireless/ath9k/eeprom.c | 2828 +++++++++++++++++------------------ drivers/net/wireless/ath9k/eeprom.h | 30 +- drivers/net/wireless/ath9k/hw.c | 72 +- drivers/net/wireless/ath9k/hw.h | 1 + drivers/net/wireless/ath9k/phy.c | 10 +- 6 files changed, 1453 insertions(+), 1492 deletions(-)
drivers/net/wireless/ath9k/calib.c +2 -2
@@ -172,10 +172,10 @@ static bool getNoiseFloorThresh(struct ath_hw *ah, {switch (band) {case IEEE80211_BAND_5GHZ : - *nft = (int8_t )ath9k_hw_get_eeprom (ah,EEP_NFTHRESH_5 ); + *nft = (int8_t )ah->eep_ops->get_eeprom (ah,EEP_NFTHRESH_5 );break ;case IEEE80211_BAND_2GHZ : - *nft = (int8_t )ath9k_hw_get_eeprom (ah,EEP_NFTHRESH_2 ); + *nft = (int8_t )ah->eep_ops->get_eeprom (ah,EEP_NFTHRESH_2 );break ;default :BUG_ON (1 );
drivers/net/wireless/ath9k/eeprom.c +1408 -1420
2,988 lines not on this page · raw message
drivers/net/wireless/ath9k/hw.c +36 -36
72 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.1
Part of the diff is not shown here. View the raw message.