diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-01-21 09:09:28 -0500 |
---|---|---|
committer | Reinette Chatre <reinette.chatre@intel.com> | 2010-03-09 19:03:26 -0500 |
commit | ee525d13f501baeaa33209620398adaf0a820629 (patch) | |
tree | 78b992a190ac325d64fa929b3fcbe6913f572044 /drivers/net/wireless/iwlwifi/iwl3945-base.c | |
parent | a1175124f34a4b859b5064efb84a197e4f6794a6 (diff) |
iwlwifi: move 3945 specific data into union
To be obviously correct, this patch only modifies
3945 files and the struct definition. A follow-up
patch will create the AGN part of the union.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl3945-base.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl3945-base.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl3945-base.c b/drivers/net/wireless/iwlwifi/iwl3945-base.c index 54daa38ecba3..1b3a1ba4ed96 100644 --- a/drivers/net/wireless/iwlwifi/iwl3945-base.c +++ b/drivers/net/wireless/iwlwifi/iwl3945-base.c | |||
@@ -351,11 +351,11 @@ static int iwl3945_send_beacon_cmd(struct iwl_priv *priv) | |||
351 | 351 | ||
352 | static void iwl3945_unset_hw_params(struct iwl_priv *priv) | 352 | static void iwl3945_unset_hw_params(struct iwl_priv *priv) |
353 | { | 353 | { |
354 | if (priv->shared_virt) | 354 | if (priv->_3945.shared_virt) |
355 | dma_free_coherent(&priv->pci_dev->dev, | 355 | dma_free_coherent(&priv->pci_dev->dev, |
356 | sizeof(struct iwl3945_shared), | 356 | sizeof(struct iwl3945_shared), |
357 | priv->shared_virt, | 357 | priv->_3945.shared_virt, |
358 | priv->shared_phys); | 358 | priv->_3945.shared_phys); |
359 | } | 359 | } |
360 | 360 | ||
361 | static void iwl3945_build_tx_cmd_hwcrypto(struct iwl_priv *priv, | 361 | static void iwl3945_build_tx_cmd_hwcrypto(struct iwl_priv *priv, |
@@ -2786,7 +2786,7 @@ static void iwl3945_bg_alive_start(struct work_struct *data) | |||
2786 | static void iwl3945_rfkill_poll(struct work_struct *data) | 2786 | static void iwl3945_rfkill_poll(struct work_struct *data) |
2787 | { | 2787 | { |
2788 | struct iwl_priv *priv = | 2788 | struct iwl_priv *priv = |
2789 | container_of(data, struct iwl_priv, rfkill_poll.work); | 2789 | container_of(data, struct iwl_priv, _3945.rfkill_poll.work); |
2790 | bool old_rfkill = test_bit(STATUS_RF_KILL_HW, &priv->status); | 2790 | bool old_rfkill = test_bit(STATUS_RF_KILL_HW, &priv->status); |
2791 | bool new_rfkill = !(iwl_read32(priv, CSR_GP_CNTRL) | 2791 | bool new_rfkill = !(iwl_read32(priv, CSR_GP_CNTRL) |
2792 | & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW); | 2792 | & CSR_GP_CNTRL_REG_FLAG_HW_RF_KILL_SW); |
@@ -2805,7 +2805,7 @@ static void iwl3945_rfkill_poll(struct work_struct *data) | |||
2805 | 2805 | ||
2806 | /* Keep this running, even if radio now enabled. This will be | 2806 | /* Keep this running, even if radio now enabled. This will be |
2807 | * cancelled in mac_start() if system decides to start again */ | 2807 | * cancelled in mac_start() if system decides to start again */ |
2808 | queue_delayed_work(priv->workqueue, &priv->rfkill_poll, | 2808 | queue_delayed_work(priv->workqueue, &priv->_3945.rfkill_poll, |
2809 | round_jiffies_relative(2 * HZ)); | 2809 | round_jiffies_relative(2 * HZ)); |
2810 | 2810 | ||
2811 | } | 2811 | } |
@@ -3212,7 +3212,7 @@ static int iwl3945_mac_start(struct ieee80211_hw *hw) | |||
3212 | 3212 | ||
3213 | /* ucode is running and will send rfkill notifications, | 3213 | /* ucode is running and will send rfkill notifications, |
3214 | * no need to poll the killswitch state anymore */ | 3214 | * no need to poll the killswitch state anymore */ |
3215 | cancel_delayed_work(&priv->rfkill_poll); | 3215 | cancel_delayed_work(&priv->_3945.rfkill_poll); |
3216 | 3216 | ||
3217 | iwl_led_start(priv); | 3217 | iwl_led_start(priv); |
3218 | 3218 | ||
@@ -3253,7 +3253,7 @@ static void iwl3945_mac_stop(struct ieee80211_hw *hw) | |||
3253 | flush_workqueue(priv->workqueue); | 3253 | flush_workqueue(priv->workqueue); |
3254 | 3254 | ||
3255 | /* start polling the killswitch state again */ | 3255 | /* start polling the killswitch state again */ |
3256 | queue_delayed_work(priv->workqueue, &priv->rfkill_poll, | 3256 | queue_delayed_work(priv->workqueue, &priv->_3945.rfkill_poll, |
3257 | round_jiffies_relative(2 * HZ)); | 3257 | round_jiffies_relative(2 * HZ)); |
3258 | 3258 | ||
3259 | IWL_DEBUG_MAC80211(priv, "leave\n"); | 3259 | IWL_DEBUG_MAC80211(priv, "leave\n"); |
@@ -3660,7 +3660,7 @@ static ssize_t show_statistics(struct device *d, | |||
3660 | struct iwl_priv *priv = dev_get_drvdata(d); | 3660 | struct iwl_priv *priv = dev_get_drvdata(d); |
3661 | u32 size = sizeof(struct iwl3945_notif_statistics); | 3661 | u32 size = sizeof(struct iwl3945_notif_statistics); |
3662 | u32 len = 0, ofs = 0; | 3662 | u32 len = 0, ofs = 0; |
3663 | u8 *data = (u8 *)&priv->statistics_39; | 3663 | u8 *data = (u8 *)&priv->_3945.statistics; |
3664 | int rc = 0; | 3664 | int rc = 0; |
3665 | 3665 | ||
3666 | if (!iwl_is_alive(priv)) | 3666 | if (!iwl_is_alive(priv)) |
@@ -3773,7 +3773,7 @@ static void iwl3945_setup_deferred_work(struct iwl_priv *priv) | |||
3773 | INIT_WORK(&priv->beacon_update, iwl3945_bg_beacon_update); | 3773 | INIT_WORK(&priv->beacon_update, iwl3945_bg_beacon_update); |
3774 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl3945_bg_init_alive_start); | 3774 | INIT_DELAYED_WORK(&priv->init_alive_start, iwl3945_bg_init_alive_start); |
3775 | INIT_DELAYED_WORK(&priv->alive_start, iwl3945_bg_alive_start); | 3775 | INIT_DELAYED_WORK(&priv->alive_start, iwl3945_bg_alive_start); |
3776 | INIT_DELAYED_WORK(&priv->rfkill_poll, iwl3945_rfkill_poll); | 3776 | INIT_DELAYED_WORK(&priv->_3945.rfkill_poll, iwl3945_rfkill_poll); |
3777 | INIT_WORK(&priv->scan_completed, iwl_bg_scan_completed); | 3777 | INIT_WORK(&priv->scan_completed, iwl_bg_scan_completed); |
3778 | INIT_WORK(&priv->request_scan, iwl3945_bg_request_scan); | 3778 | INIT_WORK(&priv->request_scan, iwl3945_bg_request_scan); |
3779 | INIT_WORK(&priv->abort_scan, iwl_bg_abort_scan); | 3779 | INIT_WORK(&priv->abort_scan, iwl_bg_abort_scan); |
@@ -4129,7 +4129,7 @@ static int iwl3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *e | |||
4129 | IWL_ERR(priv, "failed to create debugfs files. Ignoring error: %d\n", err); | 4129 | IWL_ERR(priv, "failed to create debugfs files. Ignoring error: %d\n", err); |
4130 | 4130 | ||
4131 | /* Start monitoring the killswitch */ | 4131 | /* Start monitoring the killswitch */ |
4132 | queue_delayed_work(priv->workqueue, &priv->rfkill_poll, | 4132 | queue_delayed_work(priv->workqueue, &priv->_3945.rfkill_poll, |
4133 | 2 * HZ); | 4133 | 2 * HZ); |
4134 | 4134 | ||
4135 | return 0; | 4135 | return 0; |
@@ -4203,7 +4203,7 @@ static void __devexit iwl3945_pci_remove(struct pci_dev *pdev) | |||
4203 | 4203 | ||
4204 | sysfs_remove_group(&pdev->dev.kobj, &iwl3945_attribute_group); | 4204 | sysfs_remove_group(&pdev->dev.kobj, &iwl3945_attribute_group); |
4205 | 4205 | ||
4206 | cancel_delayed_work_sync(&priv->rfkill_poll); | 4206 | cancel_delayed_work_sync(&priv->_3945.rfkill_poll); |
4207 | 4207 | ||
4208 | iwl3945_dealloc_ucode_pci(priv); | 4208 | iwl3945_dealloc_ucode_pci(priv); |
4209 | 4209 | ||