diff options
author | Don Fry <donald.h.fry@intel.com> | 2011-04-20 18:23:57 -0400 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2011-04-30 11:56:45 -0400 |
commit | 9d143e9a0d68025efe902d86eb6207cbec36dcdb (patch) | |
tree | 7aced3651272a266c3572d2a1c057499404347e2 /drivers/net/wireless/iwlwifi/iwl-6000.c | |
parent | b4ed221daba1b129c3efff8a7352d9791d034330 (diff) |
iwlagn: mod param cleanup
All agn devices use the same module parameter structure. Delete the
indirection and access the structure diretly.
Signed-off-by: Don Fry <donald.h.fry@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-6000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index 905eb57f7cab..91edb57371e7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -154,10 +154,10 @@ static struct iwl_sensitivity_ranges iwl6000_sensitivity = { | |||
154 | 154 | ||
155 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) | 155 | static int iwl6000_hw_set_hw_params(struct iwl_priv *priv) |
156 | { | 156 | { |
157 | if (priv->cfg->mod_params->num_of_queues >= IWL_MIN_NUM_QUEUES && | 157 | if (iwlagn_mod_params.num_of_queues >= IWL_MIN_NUM_QUEUES && |
158 | priv->cfg->mod_params->num_of_queues <= IWLAGN_NUM_QUEUES) | 158 | iwlagn_mod_params.num_of_queues <= IWLAGN_NUM_QUEUES) |
159 | priv->cfg->base_params->num_of_queues = | 159 | priv->cfg->base_params->num_of_queues = |
160 | priv->cfg->mod_params->num_of_queues; | 160 | iwlagn_mod_params.num_of_queues; |
161 | 161 | ||
162 | priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; | 162 | priv->hw_params.max_txq_num = priv->cfg->base_params->num_of_queues; |
163 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; | 163 | priv->hw_params.dma_chnl_num = FH50_TCSR_CHNL_NUM; |
@@ -482,7 +482,6 @@ static struct iwl_bt_params iwl6000_bt_params = { | |||
482 | .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \ | 482 | .eeprom_ver = EEPROM_6005_EEPROM_VERSION, \ |
483 | .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ | 483 | .eeprom_calib_ver = EEPROM_6005_TX_POWER_VERSION, \ |
484 | .ops = &iwl6000_ops, \ | 484 | .ops = &iwl6000_ops, \ |
485 | .mod_params = &iwlagn_mod_params, \ | ||
486 | .base_params = &iwl6000_g2_base_params, \ | 485 | .base_params = &iwl6000_g2_base_params, \ |
487 | .need_dc_calib = true, \ | 486 | .need_dc_calib = true, \ |
488 | .need_temp_offset_calib = true, \ | 487 | .need_temp_offset_calib = true, \ |
@@ -511,7 +510,6 @@ struct iwl_cfg iwl6005_2bg_cfg = { | |||
511 | .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \ | 510 | .eeprom_ver = EEPROM_6030_EEPROM_VERSION, \ |
512 | .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ | 511 | .eeprom_calib_ver = EEPROM_6030_TX_POWER_VERSION, \ |
513 | .ops = &iwl6030_ops, \ | 512 | .ops = &iwl6030_ops, \ |
514 | .mod_params = &iwlagn_mod_params, \ | ||
515 | .base_params = &iwl6000_g2_base_params, \ | 513 | .base_params = &iwl6000_g2_base_params, \ |
516 | .bt_params = &iwl6000_bt_params, \ | 514 | .bt_params = &iwl6000_bt_params, \ |
517 | .need_dc_calib = true, \ | 515 | .need_dc_calib = true, \ |
@@ -593,7 +591,6 @@ struct iwl_cfg iwl130_bg_cfg = { | |||
593 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \ | 591 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, \ |
594 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \ | 592 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, \ |
595 | .ops = &iwl6000_ops, \ | 593 | .ops = &iwl6000_ops, \ |
596 | .mod_params = &iwlagn_mod_params, \ | ||
597 | .base_params = &iwl6000_base_params, \ | 594 | .base_params = &iwl6000_base_params, \ |
598 | .pa_type = IWL_PA_INTERNAL, \ | 595 | .pa_type = IWL_PA_INTERNAL, \ |
599 | .led_mode = IWL_LED_BLINK | 596 | .led_mode = IWL_LED_BLINK |
@@ -623,7 +620,6 @@ struct iwl_cfg iwl6000i_2bg_cfg = { | |||
623 | .ops = &iwl6050_ops, \ | 620 | .ops = &iwl6050_ops, \ |
624 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \ | 621 | .eeprom_ver = EEPROM_6050_EEPROM_VERSION, \ |
625 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ | 622 | .eeprom_calib_ver = EEPROM_6050_TX_POWER_VERSION, \ |
626 | .mod_params = &iwlagn_mod_params, \ | ||
627 | .base_params = &iwl6050_base_params, \ | 623 | .base_params = &iwl6050_base_params, \ |
628 | .need_dc_calib = true, \ | 624 | .need_dc_calib = true, \ |
629 | .led_mode = IWL_LED_BLINK, \ | 625 | .led_mode = IWL_LED_BLINK, \ |
@@ -648,7 +644,6 @@ struct iwl_cfg iwl6150_bgn_cfg = { | |||
648 | .eeprom_ver = EEPROM_6150_EEPROM_VERSION, | 644 | .eeprom_ver = EEPROM_6150_EEPROM_VERSION, |
649 | .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, | 645 | .eeprom_calib_ver = EEPROM_6150_TX_POWER_VERSION, |
650 | .ops = &iwl6150_ops, | 646 | .ops = &iwl6150_ops, |
651 | .mod_params = &iwlagn_mod_params, | ||
652 | .base_params = &iwl6050_base_params, | 647 | .base_params = &iwl6050_base_params, |
653 | .ht_params = &iwl6000_ht_params, | 648 | .ht_params = &iwl6000_ht_params, |
654 | .need_dc_calib = true, | 649 | .need_dc_calib = true, |
@@ -664,7 +659,6 @@ struct iwl_cfg iwl6000_3agn_cfg = { | |||
664 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, | 659 | .eeprom_ver = EEPROM_6000_EEPROM_VERSION, |
665 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, | 660 | .eeprom_calib_ver = EEPROM_6000_TX_POWER_VERSION, |
666 | .ops = &iwl6000_ops, | 661 | .ops = &iwl6000_ops, |
667 | .mod_params = &iwlagn_mod_params, | ||
668 | .base_params = &iwl6000_base_params, | 662 | .base_params = &iwl6000_base_params, |
669 | .ht_params = &iwl6000_ht_params, | 663 | .ht_params = &iwl6000_ht_params, |
670 | .need_dc_calib = true, | 664 | .need_dc_calib = true, |