diff options
| author | Johannes Berg <[email protected]> | 2025-05-08 12:12:58 +0000 |
|---|---|---|
| committer | Miri Korenblit <[email protected]> | 2025-05-09 12:37:49 +0000 |
| commit | 8b24b32ee62585e771484791eecf5dce7fc43a82 (patch) | |
| tree | 512bd48f80069f27a4dabfa3298ee1e5e9f10779 /drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | |
| parent | wifi: iwlwifi: cfg: remove nvm_hw_section_num from new devices (diff) | |
| download | kernel-8b24b32ee62585e771484791eecf5dce7fc43a82.tar.gz kernel-8b24b32ee62585e771484791eecf5dce7fc43a82.zip | |
wifi: iwlwifi: pass trans to iwl_parse_nvm_mcc_info()
There's no need to pass various different pointers when
the transport is already established, so just pass that
instead.
Signed-off-by: Johannes Berg <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Miri Korenblit <[email protected]>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c')
| -rw-r--r-- | drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c index 87f927ed2c6e..96dc27b93db1 100644 --- a/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c +++ b/drivers/net/wireless/intel/iwlwifi/iwl-nvm-parse.c @@ -1744,10 +1744,12 @@ static struct iwl_reg_capa iwl_get_reg_capa(u32 flags, u8 resp_ver) } struct ieee80211_regdomain * -iwl_parse_nvm_mcc_info(struct device *dev, const struct iwl_cfg *cfg, +iwl_parse_nvm_mcc_info(struct iwl_trans *trans, int num_of_ch, __le32 *channels, u16 fw_mcc, u16 geo_info, u32 cap, u8 resp_ver) { + const struct iwl_cfg *cfg = trans->cfg; + struct device *dev = trans->dev; int ch_idx; u16 ch_flags; u32 reg_rule_flags, prev_reg_rule_flags = 0; |
