diff options
author | Don Fry <donald.h.fry@intel.com> | 2011-11-10 09:55:27 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-11 12:32:56 -0500 |
commit | 97b52cfd1ae0c2f7284ee36e80ea0c22000f90bf (patch) | |
tree | 220443b9e00cbc5c6a04ca35b8e3a9f489aee759 /drivers/net/wireless/iwlwifi/iwl-debugfs.c | |
parent | 1431b2166a83ba0cc46007269298caa53c86a6d0 (diff) |
iwlagn: move nvm_device_type from iwl_priv to iwl_trans
The nvm_device_type is eeprom related and does not need to be part
of the iwl_priv structure. Move it and eliminate access to the iwl_priv
structure.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
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-debugfs.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-debugfs.c b/drivers/net/wireless/iwlwifi/iwl-debugfs.c index 42871bafc818..68b04f5b10ce 100644 --- a/drivers/net/wireless/iwlwifi/iwl-debugfs.c +++ b/drivers/net/wireless/iwlwifi/iwl-debugfs.c | |||
@@ -430,7 +430,7 @@ static ssize_t iwl_dbgfs_nvm_read(struct file *file, | |||
430 | eeprom_ver = iwl_eeprom_query16(priv, EEPROM_VERSION); | 430 | eeprom_ver = iwl_eeprom_query16(priv, EEPROM_VERSION); |
431 | pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s, " | 431 | pos += scnprintf(buf + pos, buf_size - pos, "NVM Type: %s, " |
432 | "version: 0x%x\n", | 432 | "version: 0x%x\n", |
433 | (priv->nvm_device_type == NVM_DEVICE_TYPE_OTP) | 433 | (trans(priv)->nvm_device_type == NVM_DEVICE_TYPE_OTP) |
434 | ? "OTP" : "EEPROM", eeprom_ver); | 434 | ? "OTP" : "EEPROM", eeprom_ver); |
435 | for (ofs = 0 ; ofs < eeprom_len ; ofs += 16) { | 435 | for (ofs = 0 ; ofs < eeprom_len ; ofs += 16) { |
436 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); | 436 | pos += scnprintf(buf + pos, buf_size - pos, "0x%.4x ", ofs); |