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:22 +0200 |
commit | d8ec2e2a63e8136fc7d687cf75bcd034d9615c24 (patch) | |
tree | a641eddde8753da70bceb152d930345958314108 /drivers/net/wireless/ath/ath9k/eeprom.h | |
parent | 291478b7b3c020210bcabd78a0348c0c381a362c (diff) | |
download | linux-stable-d8ec2e2a63e8136fc7d687cf75bcd034d9615c24.tar.gz linux-stable-d8ec2e2a63e8136fc7d687cf75bcd034d9615c24.tar.bz2 linux-stable-d8ec2e2a63e8136fc7d687cf75bcd034d9615c24.zip |
ath9k: Add an eeprom_ops callback for retrieving the eepmisc value
This allows deciding if we have to swap the EEPROM data (so it matches
the system's native endianness) even if no byte-swapping (swab16, based on
the first two bytes in the EEPROM) is needed.
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/eeprom.h')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/eeprom.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/eeprom.h b/drivers/net/wireless/ath/ath9k/eeprom.h index c466adaad00c..408cfa797589 100644 --- a/drivers/net/wireless/ath/ath9k/eeprom.h +++ b/drivers/net/wireless/ath/ath9k/eeprom.h @@ -655,6 +655,7 @@ struct eeprom_ops { u16 cfgCtl, u8 twiceAntennaReduction, u8 powerLimit, bool test); u16 (*get_spur_channel)(struct ath_hw *ah, u16 i, bool is2GHz); + u8 (*get_eepmisc)(struct ath_hw *ah); }; void ath9k_hw_analog_shift_regwrite(struct ath_hw *ah, u32 reg, u32 val); |