diff options
author | Jay Sternberg <jay.e.sternberg@intel.com> | 2008-10-14 15:32:41 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-10-31 19:00:26 -0400 |
commit | 4e062f99af771173b601742b0c1c98eb4d52ea08 (patch) | |
tree | a6021ee06ead07e6d8550f42796511f2dcf89073 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 4acf07497140b1504a799d6a1b4da7d1b1e35af5 (diff) |
iwlwifi: define firmware file name once
string repeated for definition of ucode firmware file and in preparation for
multiple firmware files need to consolidate location for their definition.
Signed-off-by: Jay Sternberg <jay.e.sternberg@intel.com>
Acked-by: Tomas Winkler <tomas.winler@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index d5282fa65084..0fc6757cb901 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -46,6 +46,8 @@ | |||
46 | 46 | ||
47 | #define IWL5000_UCODE_API "-1" | 47 | #define IWL5000_UCODE_API "-1" |
48 | 48 | ||
49 | #define IWL5000_MODULE_FIRMWARE "iwlwifi-5000" IWL5000_UCODE_API ".ucode" | ||
50 | |||
49 | static const u16 iwl5000_default_queue_to_tx_fifo[] = { | 51 | static const u16 iwl5000_default_queue_to_tx_fifo[] = { |
50 | IWL_TX_FIFO_AC3, | 52 | IWL_TX_FIFO_AC3, |
51 | IWL_TX_FIFO_AC2, | 53 | IWL_TX_FIFO_AC2, |
@@ -1544,7 +1546,7 @@ static struct iwl_mod_params iwl50_mod_params = { | |||
1544 | 1546 | ||
1545 | struct iwl_cfg iwl5300_agn_cfg = { | 1547 | struct iwl_cfg iwl5300_agn_cfg = { |
1546 | .name = "5300AGN", | 1548 | .name = "5300AGN", |
1547 | .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | 1549 | .fw_name = IWL5000_MODULE_FIRMWARE, |
1548 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 1550 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
1549 | .ops = &iwl5000_ops, | 1551 | .ops = &iwl5000_ops, |
1550 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, | 1552 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, |
@@ -1553,7 +1555,7 @@ struct iwl_cfg iwl5300_agn_cfg = { | |||
1553 | 1555 | ||
1554 | struct iwl_cfg iwl5100_bg_cfg = { | 1556 | struct iwl_cfg iwl5100_bg_cfg = { |
1555 | .name = "5100BG", | 1557 | .name = "5100BG", |
1556 | .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | 1558 | .fw_name = IWL5000_MODULE_FIRMWARE, |
1557 | .sku = IWL_SKU_G, | 1559 | .sku = IWL_SKU_G, |
1558 | .ops = &iwl5000_ops, | 1560 | .ops = &iwl5000_ops, |
1559 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, | 1561 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, |
@@ -1562,7 +1564,7 @@ struct iwl_cfg iwl5100_bg_cfg = { | |||
1562 | 1564 | ||
1563 | struct iwl_cfg iwl5100_abg_cfg = { | 1565 | struct iwl_cfg iwl5100_abg_cfg = { |
1564 | .name = "5100ABG", | 1566 | .name = "5100ABG", |
1565 | .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | 1567 | .fw_name = IWL5000_MODULE_FIRMWARE, |
1566 | .sku = IWL_SKU_A|IWL_SKU_G, | 1568 | .sku = IWL_SKU_A|IWL_SKU_G, |
1567 | .ops = &iwl5000_ops, | 1569 | .ops = &iwl5000_ops, |
1568 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, | 1570 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, |
@@ -1571,7 +1573,7 @@ struct iwl_cfg iwl5100_abg_cfg = { | |||
1571 | 1573 | ||
1572 | struct iwl_cfg iwl5100_agn_cfg = { | 1574 | struct iwl_cfg iwl5100_agn_cfg = { |
1573 | .name = "5100AGN", | 1575 | .name = "5100AGN", |
1574 | .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | 1576 | .fw_name = IWL5000_MODULE_FIRMWARE, |
1575 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 1577 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
1576 | .ops = &iwl5000_ops, | 1578 | .ops = &iwl5000_ops, |
1577 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, | 1579 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, |
@@ -1580,14 +1582,14 @@ struct iwl_cfg iwl5100_agn_cfg = { | |||
1580 | 1582 | ||
1581 | struct iwl_cfg iwl5350_agn_cfg = { | 1583 | struct iwl_cfg iwl5350_agn_cfg = { |
1582 | .name = "5350AGN", | 1584 | .name = "5350AGN", |
1583 | .fw_name = "iwlwifi-5000" IWL5000_UCODE_API ".ucode", | 1585 | .fw_name = IWL5000_MODULE_FIRMWARE, |
1584 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, | 1586 | .sku = IWL_SKU_A|IWL_SKU_G|IWL_SKU_N, |
1585 | .ops = &iwl5000_ops, | 1587 | .ops = &iwl5000_ops, |
1586 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, | 1588 | .eeprom_size = IWL_5000_EEPROM_IMG_SIZE, |
1587 | .mod_params = &iwl50_mod_params, | 1589 | .mod_params = &iwl50_mod_params, |
1588 | }; | 1590 | }; |
1589 | 1591 | ||
1590 | MODULE_FIRMWARE("iwlwifi-5000" IWL5000_UCODE_API ".ucode"); | 1592 | MODULE_FIRMWARE(IWL5000_MODULE_FIRMWARE); |
1591 | 1593 | ||
1592 | module_param_named(disable50, iwl50_mod_params.disable, int, 0444); | 1594 | module_param_named(disable50, iwl50_mod_params.disable, int, 0444); |
1593 | MODULE_PARM_DESC(disable50, | 1595 | MODULE_PARM_DESC(disable50, |