]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
wifi: iwlwifi: pcie: rename iwl_pci_gen1_2_probe() argument
authorJohannes Berg <johannes.berg@intel.com>
Wed, 9 Jul 2025 05:16:30 +0000 (08:16 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Wed, 9 Jul 2025 08:43:16 +0000 (11:43 +0300)
Using 'trans' for the mac config is confusing, rename the
argument to 'mac_cfg'.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250709081300.72d87406f8d7.I8b39f01e06ad7791efe718c267cbf367233920a3@changeid
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/internal.h
drivers/net/wireless/intel/iwlwifi/pcie/gen1_2/trans.c

index ec17e2e84151284123b0422b8db152038d478db9..7dd11891ccfeaf0c12eb90f4ab2413e5f87d22c3 100644 (file)
@@ -1078,9 +1078,9 @@ void __releases(nic_access_nobh)
 iwl_trans_pcie_release_nic_access(struct iwl_trans *trans);
 void iwl_pcie_alloc_fw_monitor(struct iwl_trans *trans, u8 max_power);
 int iwl_pci_gen1_2_probe(struct pci_dev *pdev,
-                       const struct pci_device_id *ent,
-                       const struct iwl_mac_cfg *trans, u8 __iomem *hw_base,
-                       u32 hw_rev);
+                        const struct pci_device_id *ent,
+                        const struct iwl_mac_cfg *mac_cfg,
+                        u8 __iomem *hw_base, u32 hw_rev);
 
 /* transport gen 1 exported functions */
 void iwl_trans_pcie_fw_alive(struct iwl_trans *trans);
index 8440f0c8a78e45bdaabde3208ccbd6aafb587741..585d845b53faf78f68c14e16b5fee1c82a20aa4b 100644 (file)
@@ -4130,8 +4130,8 @@ static void iwl_pcie_check_me_status(struct iwl_trans *trans)
 
 int iwl_pci_gen1_2_probe(struct pci_dev *pdev,
                         const struct pci_device_id *ent,
-                        const struct iwl_mac_cfg *trans, u8 __iomem *hw_base,
-                        u32 hw_rev)
+                        const struct iwl_mac_cfg *mac_cfg,
+                        u8 __iomem *hw_base, u32 hw_rev)
 {
        const struct iwl_dev_info *dev_info;
        struct iwl_trans_info info = {
@@ -4142,7 +4142,7 @@ int iwl_pci_gen1_2_probe(struct pci_dev *pdev,
        struct iwl_trans_pcie *trans_pcie;
        int ret;
 
-       iwl_trans = iwl_trans_pcie_alloc(pdev, trans, &info, hw_base);
+       iwl_trans = iwl_trans_pcie_alloc(pdev, mac_cfg, &info, hw_base);
        if (IS_ERR(iwl_trans))
                return PTR_ERR(iwl_trans);