ath9k_hw: the eep_map is used only for AR9280 PCI card ini fixup
We can reorganize the code in such a way that eep_map can be removed, which makes the code more clearer. Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
641d99217f
commit
939ad86de5
@@ -257,13 +257,10 @@ int ath9k_hw_eeprom_init(struct ath_hw *ah)
|
||||
int status;
|
||||
|
||||
if (AR_SREV_9287(ah)) {
|
||||
ah->eep_map = EEP_MAP_AR9287;
|
||||
ah->eep_ops = &eep_AR9287_ops;
|
||||
} else if (AR_SREV_9285(ah) || AR_SREV_9271(ah)) {
|
||||
ah->eep_map = EEP_MAP_4KBITS;
|
||||
ah->eep_ops = &eep_4k_ops;
|
||||
} else {
|
||||
ah->eep_map = EEP_MAP_DEFAULT;
|
||||
ah->eep_ops = &eep_def_ops;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user