Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f74df6fb authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Cleanup EEPROM operations



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

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent e153789d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
Loading