]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iwlwifi: rename ACPI_SAR_NUM_CHAIN_LIMITS to ACPI_SAR_NUM_CHAINS
authorLuca Coelho <luciano.coelho@intel.com>
Thu, 5 Aug 2021 10:19:32 +0000 (13:19 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Aug 2021 20:35:17 +0000 (23:35 +0300)
The "LIMITS" in the macro name don't have much meaning, so remove it
to make the macro shorter and better reflect that this is the number
of chains that we have limits for.

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210805130823.65591c9fa2af.Ie7e4ba94c903ef444cb07df61891394c11c7c864@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/acpi.c
drivers/net/wireless/intel/iwlwifi/fw/acpi.h

index 34933f133a0aeabc02aa8faccd1d38f150ca8d5a..dff792653a2452ffbc3b8555fb815d0e70217f64 100644 (file)
@@ -433,10 +433,10 @@ static int iwl_sar_fill_table(struct iwl_fw_runtime *fwrt,
                              __le16 *per_chain, u32 n_subbands,
                              int prof_a, int prof_b)
 {
-       int profs[ACPI_SAR_NUM_CHAIN_LIMITS] = { prof_a, prof_b };
+       int profs[ACPI_SAR_NUM_CHAINS] = { prof_a, prof_b };
        int i, j, idx;
 
-       for (i = 0; i < ACPI_SAR_NUM_CHAIN_LIMITS; i++) {
+       for (i = 0; i < ACPI_SAR_NUM_CHAINS; i++) {
                struct iwl_sar_profile *prof;
 
                /* don't allow SAR to be disabled (profile 0 means disable) */
@@ -486,7 +486,7 @@ int iwl_sar_select_profile(struct iwl_fw_runtime *fwrt,
 
        for (i = 0; i < n_tables; i++) {
                ret = iwl_sar_fill_table(fwrt,
-                        &per_chain[i * n_subbands * ACPI_SAR_NUM_CHAIN_LIMITS],
+                        &per_chain[i * n_subbands * ACPI_SAR_NUM_CHAINS],
                         n_subbands, prof_a, prof_b);
                if (ret)
                        break;
index b858e998999c004af03f8c96378000bfff747bbe..24e94430e5d904168159fad0beb10998a4bce754 100644 (file)
@@ -33,7 +33,7 @@
 #define ACPI_NUM_GEO_PROFILES          3
 #define ACPI_GEO_PER_CHAIN_SIZE                3
 
-#define ACPI_SAR_NUM_CHAIN_LIMITS      2
+#define ACPI_SAR_NUM_CHAINS            2
 #define ACPI_SAR_NUM_SUB_BANDS         5
 #define ACPI_SAR_NUM_TABLES            1