diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-09-15 11:46:51 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-09-19 16:10:10 -0400 |
commit | 7d8f2d50b5082385ad0e0ab5f7dc2a6f1c19819c (patch) | |
tree | 99f1d49815710ff0174c8eee06253e6bfa328bad /drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |
parent | c6f30347a79502cc81e8ec55248b569b3a90ba2a (diff) | |
download | lwn-7d8f2d50b5082385ad0e0ab5f7dc2a6f1c19819c.tar.gz lwn-7d8f2d50b5082385ad0e0ab5f7dc2a6f1c19819c.zip |
iwlagn: use iwl_eeprom_calib_hdr structure
For retrieve calibration hdr related information, instead of using structure in
one place and #define in other place, unify the method to use data structure.
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index 13018872f776..e8b324c84da8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c @@ -96,11 +96,7 @@ void iwlagn_temperature(struct iwl_priv *priv) u16 iwlagn_eeprom_calib_version(struct iwl_priv *priv) { - struct iwl_eeprom_calib_hdr { - u8 version; - u8 pa_type; - u16 voltage; - } *hdr; + struct iwl_eeprom_calib_hdr *hdr; hdr = (struct iwl_eeprom_calib_hdr *)iwl_eeprom_query_addr(priv, EEPROM_CALIB_ALL); |