aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKolekar, Abhijeet <abhijeet.kolekar@intel.com>2008-12-18 21:37:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:59:04 -0500
commitc0f20d91417bc8a4b54e1917a45f8fd4cf9f2991 (patch)
treef924fef4f6211b9706cee109f0095ba1d575eb93 /drivers
parent5747d47fb469613901e76a1380daf14901e76092 (diff)
iwl3945: replace iwl_3945_cfg with iwl_cfg
The patch replaces iwl_3945_cfg with iwl_cfg for 3945. Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.c4
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945.h2
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-core.h30
-rw-r--r--drivers/net/wireless/iwlwifi/iwl3945-base.c2
4 files changed, 4 insertions, 34 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.c b/drivers/net/wireless/iwlwifi/iwl-3945.c
index 8c40f669978e..93e5c52d91dc 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.c
@@ -2507,7 +2507,7 @@ void iwl3945_hw_cancel_deferred_work(struct iwl3945_priv *priv)
2507 cancel_delayed_work(&priv->thermal_periodic); 2507 cancel_delayed_work(&priv->thermal_periodic);
2508} 2508}
2509 2509
2510static struct iwl_3945_cfg iwl3945_bg_cfg = { 2510static struct iwl_cfg iwl3945_bg_cfg = {
2511 .name = "3945BG", 2511 .name = "3945BG",
2512 .fw_name_pre = IWL3945_FW_PRE, 2512 .fw_name_pre = IWL3945_FW_PRE,
2513 .ucode_api_max = IWL3945_UCODE_API_MAX, 2513 .ucode_api_max = IWL3945_UCODE_API_MAX,
@@ -2515,7 +2515,7 @@ static struct iwl_3945_cfg iwl3945_bg_cfg = {
2515 .sku = IWL_SKU_G, 2515 .sku = IWL_SKU_G,
2516}; 2516};
2517 2517
2518static struct iwl_3945_cfg iwl3945_abg_cfg = { 2518static struct iwl_cfg iwl3945_abg_cfg = {
2519 .name = "3945ABG", 2519 .name = "3945ABG",
2520 .fw_name_pre = IWL3945_FW_PRE, 2520 .fw_name_pre = IWL3945_FW_PRE,
2521 .ucode_api_max = IWL3945_UCODE_API_MAX, 2521 .ucode_api_max = IWL3945_UCODE_API_MAX,
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945.h b/drivers/net/wireless/iwlwifi/iwl-3945.h
index 46bbd8180bad..760482e1201e 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945.h
@@ -547,7 +547,7 @@ struct iwl3945_priv {
547 struct ieee80211_hw *hw; 547 struct ieee80211_hw *hw;
548 struct ieee80211_channel *ieee_channels; 548 struct ieee80211_channel *ieee_channels;
549 struct ieee80211_rate *ieee_rates; 549 struct ieee80211_rate *ieee_rates;
550 struct iwl_3945_cfg *cfg; /* device configuration */ 550 struct iwl_cfg *cfg; /* device configuration */
551 551
552 /* temporary frame storage list */ 552 /* temporary frame storage list */
553 struct list_head free_frames; 553 struct list_head free_frames;
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h
index a3cc43dd845b..7c3a20a986bb 100644
--- a/drivers/net/wireless/iwlwifi/iwl-core.h
+++ b/drivers/net/wireless/iwlwifi/iwl-core.h
@@ -205,36 +205,6 @@ struct iwl_cfg {
205 const struct iwl_mod_params *mod_params; 205 const struct iwl_mod_params *mod_params;
206}; 206};
207 207
208/**
209 * struct iwl_3945_cfg
210 * @fw_name_pre: Firmware filename prefix. The api version and extension
211 * (.ucode) will be added to filename before loading from disk. The
212 * filename is constructed as fw_name_pre<api>.ucode.
213 * @ucode_api_max: Highest version of uCode API supported by driver.
214 * @ucode_api_min: Lowest version of uCode API supported by driver.
215 *
216 * We enable the driver to be backward compatible wrt API version. The
217 * driver specifies which APIs it supports (with @ucode_api_max being the
218 * highest and @ucode_api_min the lowest). Firmware will only be loaded if
219 * it has a supported API version. The firmware's API version will be
220 * stored in @iwl_priv, enabling the driver to make runtime changes based
221 * on firmware version used.
222 *
223 * For example,
224 * if (IWL_UCODE_API(priv->ucode_ver) >= 2) {
225 * Driver interacts with Firmware API version >= 2.
226 * } else {
227 * Driver interacts with Firmware API version 1.
228 * }
229 */
230struct iwl_3945_cfg {
231 const char *name;
232 const char *fw_name_pre;
233 const unsigned int ucode_api_max;
234 const unsigned int ucode_api_min;
235 unsigned int sku;
236};
237
238/*************************** 208/***************************
239 * L i b * 209 * L i b *
240 ***************************/ 210 ***************************/
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c
index c3fd7c651ba2..c597c2422927 100644
--- a/drivers/net/wireless/iwlwifi/iwl3945-base.c
+++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c
@@ -7718,7 +7718,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e
7718 int err = 0; 7718 int err = 0;
7719 struct iwl3945_priv *priv; 7719 struct iwl3945_priv *priv;
7720 struct ieee80211_hw *hw; 7720 struct ieee80211_hw *hw;
7721 struct iwl_3945_cfg *cfg = (struct iwl_3945_cfg *)(ent->driver_data); 7721 struct iwl_cfg *cfg = (struct iwl_cfg *)(ent->driver_data);
7722 unsigned long flags; 7722 unsigned long flags;
7723 7723
7724 /*********************** 7724 /***********************