diff options
author | Tomas Winkler <tomas.winkler@intel.com> | 2008-03-12 19:58:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-25 16:41:47 -0400 |
commit | c79dd5b5bc5a65822cdc9d571032c469ad7577d5 (patch) | |
tree | 9056b3470264641eb6d4f25fedef5cde5f1c069d /drivers/net/wireless/iwlwifi/iwl-eeprom.c | |
parent | 0a6857e70d577237bb1cd1c991e68e7d3b6f7c90 (diff) |
iwlwifi: rename struct iwl4965_priv to struct iwl_priv
This patch renames iwl4965_priv to iwl_priv. iwl_priv will
be shared by more hw.
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-eeprom.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-eeprom.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-eeprom.c b/drivers/net/wireless/iwlwifi/iwl-eeprom.c index 4fd1b362d2ed..ccacd489ae80 100644 --- a/drivers/net/wireless/iwlwifi/iwl-eeprom.c +++ b/drivers/net/wireless/iwlwifi/iwl-eeprom.c | |||
@@ -81,7 +81,7 @@ | |||
81 | * | 81 | * |
82 | ******************************************************************************/ | 82 | ******************************************************************************/ |
83 | 83 | ||
84 | int iwlcore_eeprom_verify_signature(struct iwl4965_priv *priv) | 84 | int iwlcore_eeprom_verify_signature(struct iwl_priv *priv) |
85 | { | 85 | { |
86 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); | 86 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); |
87 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { | 87 | if ((gp & CSR_EEPROM_GP_VALID_MSK) == CSR_EEPROM_GP_BAD_SIGNATURE) { |
@@ -98,7 +98,7 @@ EXPORT_SYMBOL(iwlcore_eeprom_verify_signature); | |||
98 | * EEPROM chip, not a single event, so even reads could conflict if they | 98 | * EEPROM chip, not a single event, so even reads could conflict if they |
99 | * weren't arbitrated by the semaphore. | 99 | * weren't arbitrated by the semaphore. |
100 | */ | 100 | */ |
101 | int iwlcore_eeprom_acquire_semaphore(struct iwl4965_priv *priv) | 101 | int iwlcore_eeprom_acquire_semaphore(struct iwl_priv *priv) |
102 | { | 102 | { |
103 | u16 count; | 103 | u16 count; |
104 | int ret; | 104 | int ret; |
@@ -124,7 +124,7 @@ int iwlcore_eeprom_acquire_semaphore(struct iwl4965_priv *priv) | |||
124 | } | 124 | } |
125 | EXPORT_SYMBOL(iwlcore_eeprom_acquire_semaphore); | 125 | EXPORT_SYMBOL(iwlcore_eeprom_acquire_semaphore); |
126 | 126 | ||
127 | void iwlcore_eeprom_release_semaphore(struct iwl4965_priv *priv) | 127 | void iwlcore_eeprom_release_semaphore(struct iwl_priv *priv) |
128 | { | 128 | { |
129 | iwl4965_clear_bit(priv, CSR_HW_IF_CONFIG_REG, | 129 | iwl4965_clear_bit(priv, CSR_HW_IF_CONFIG_REG, |
130 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); | 130 | CSR_HW_IF_CONFIG_REG_BIT_EEPROM_OWN_SEM); |
@@ -140,7 +140,7 @@ EXPORT_SYMBOL(iwlcore_eeprom_release_semaphore); | |||
140 | * | 140 | * |
141 | * NOTE: This routine uses the non-debug IO access functions. | 141 | * NOTE: This routine uses the non-debug IO access functions. |
142 | */ | 142 | */ |
143 | int iwl_eeprom_init(struct iwl4965_priv *priv) | 143 | int iwl_eeprom_init(struct iwl_priv *priv) |
144 | { | 144 | { |
145 | u16 *e = (u16 *)&priv->eeprom; | 145 | u16 *e = (u16 *)&priv->eeprom; |
146 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); | 146 | u32 gp = iwl4965_read32(priv, CSR_EEPROM_GP); |
@@ -197,7 +197,7 @@ done: | |||
197 | EXPORT_SYMBOL(iwl_eeprom_init); | 197 | EXPORT_SYMBOL(iwl_eeprom_init); |
198 | 198 | ||
199 | 199 | ||
200 | void iwl_eeprom_get_mac(const struct iwl4965_priv *priv, u8 *mac) | 200 | void iwl_eeprom_get_mac(const struct iwl_priv *priv, u8 *mac) |
201 | { | 201 | { |
202 | memcpy(mac, priv->eeprom.mac_address, 6); | 202 | memcpy(mac, priv->eeprom.mac_address, 6); |
203 | } | 203 | } |