diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2016-12-05 13:27:34 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-12-15 10:26:27 +0200 |
commit | 7d7dc5386836dd973eaef48b11c4e77368dd07a4 (patch) | |
tree | 6e4b2ae6e7bcb37fcb507aaf54b16b3dd46cea33 /drivers/net/wireless/ath/ath9k/ar5008_phy.c | |
parent | d8ec2e2a63e8136fc7d687cf75bcd034d9615c24 (diff) | |
download | op-kernel-dev-7d7dc5386836dd973eaef48b11c4e77368dd07a4.zip op-kernel-dev-7d7dc5386836dd973eaef48b11c4e77368dd07a4.tar.gz |
ath9k: replace eeprom_param EEP_MINOR_REV with get_eeprom_rev
get_eeprom(ah, EEP_MINOR_REV) and get_eeprom_rev(ah) are both doing the
same thing: returning the EEPROM revision (12 lowest bits). Make the
code consistent by using get_eeprom_rev(ah) everywhere.
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ar5008_phy.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ar5008_phy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/ar5008_phy.c b/drivers/net/wireless/ath/ath9k/ar5008_phy.c index 8eea8d2..7922550 100644 --- a/drivers/net/wireless/ath/ath9k/ar5008_phy.c +++ b/drivers/net/wireless/ath/ath9k/ar5008_phy.c @@ -524,7 +524,7 @@ static bool ar5008_hw_set_rf_regs(struct ath_hw *ah, return true; /* Setup rf parameters */ - eepMinorRev = ah->eep_ops->get_eeprom(ah, EEP_MINOR_REV); + eepMinorRev = ah->eep_ops->get_eeprom_rev(ah); for (i = 0; i < ah->iniBank6.ia_rows; i++) ah->analogBank6Data[i] = INI_RA(&ah->iniBank6, i, modesIndex); |