Skip to contentSkip to conversation

ath9k: Cleanup EEPROM operations

PATCH In review Sujith 1 participant 1 message Feb 9, 2009 Networking drivers (wireless)

lore
Share & tools
lore

Sujith

author
#0 lore raw

PATCH 9/10 ath9k: Cleanup EEPROM operations

This patch removes the various function pointer assignments and unifies them in a single ops structure.

---
 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
index 8c44d5a..7e70a81 100644
@@ -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/eeprom.h +1 -29
index 47c8eea..7a4266f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath9k/hw.c +36 -36

72 lines not on this page · raw message

drivers/net/wireless/ath9k/hw.h +1 -0
index 84914e2..f8f46db 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/ath9k/phy.c +5 -5
index da4165b..5a42969 100644

Lines of this file are not shown. View the 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.