Commit 248e7e2a authored by Luca Coelho's avatar Luca Coelho

iwlwifi: rename ACPI_SAR_NUM_CHAIN_LIMITS to ACPI_SAR_NUM_CHAINS

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: default avatarLuca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210805130823.65591c9fa2af.Ie7e4ba94c903ef444cb07df61891394c11c7c864@changeidSigned-off-by: default avatarLuca Coelho <luciano.coelho@intel.com>
parent 6c608cd6
...@@ -433,10 +433,10 @@ static int iwl_sar_fill_table(struct iwl_fw_runtime *fwrt, ...@@ -433,10 +433,10 @@ static int iwl_sar_fill_table(struct iwl_fw_runtime *fwrt,
__le16 *per_chain, u32 n_subbands, __le16 *per_chain, u32 n_subbands,
int prof_a, int prof_b) 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; 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; struct iwl_sar_profile *prof;
/* don't allow SAR to be disabled (profile 0 means disable) */ /* 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, ...@@ -486,7 +486,7 @@ int iwl_sar_select_profile(struct iwl_fw_runtime *fwrt,
for (i = 0; i < n_tables; i++) { for (i = 0; i < n_tables; i++) {
ret = iwl_sar_fill_table(fwrt, 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); n_subbands, prof_a, prof_b);
if (ret) if (ret)
break; break;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#define ACPI_NUM_GEO_PROFILES 3 #define ACPI_NUM_GEO_PROFILES 3
#define ACPI_GEO_PER_CHAIN_SIZE 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_SUB_BANDS 5
#define ACPI_SAR_NUM_TABLES 1 #define ACPI_SAR_NUM_TABLES 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment