]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
interconnect: qcom: msm8937: constify pointer to qcom_icc_node
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Thu, 5 Sep 2024 15:16:36 +0000 (17:16 +0200)
committerGeorgi Djakov <djakov@kernel.org>
Tue, 22 Oct 2024 08:12:03 +0000 (11:12 +0300)
Pointers to struct qcom_icc_node are const.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240905151636.280065-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
drivers/interconnect/qcom/msm8937.c

index 052b14c28ef8bcd2b3b83a192519293ee8e269a1..d9f8ba69b32904651c7ee346acafcc2cf2c64b0e 100644 (file)
@@ -1175,7 +1175,7 @@ static struct qcom_icc_node slv_lpass = {
        .qos.qos_mode = NOC_QOS_MODE_INVALID,
 };
 
-static struct qcom_icc_node *msm8937_bimc_nodes[] = {
+static struct qcom_icc_node * const msm8937_bimc_nodes[] = {
        [MAS_APPS_PROC] = &mas_apps_proc,
        [MAS_OXILI] = &mas_oxili,
        [MAS_SNOC_BIMC_0] = &mas_snoc_bimc_0,
@@ -1204,7 +1204,7 @@ static const struct qcom_icc_desc msm8937_bimc = {
        .ab_coeff = 154,
 };
 
-static struct qcom_icc_node *msm8937_pcnoc_nodes[] = {
+static struct qcom_icc_node * const msm8937_pcnoc_nodes[] = {
        [MAS_SPDM] = &mas_spdm,
        [MAS_BLSP_1] = &mas_blsp_1,
        [MAS_BLSP_2] = &mas_blsp_2,
@@ -1268,7 +1268,7 @@ static const struct qcom_icc_desc msm8937_pcnoc = {
        .regmap_cfg = &msm8937_pcnoc_regmap_config,
 };
 
-static struct qcom_icc_node *msm8937_snoc_nodes[] = {
+static struct qcom_icc_node * const msm8937_snoc_nodes[] = {
        [MAS_QDSS_BAM] = &mas_qdss_bam,
        [MAS_BIMC_SNOC] = &mas_bimc_snoc,
        [MAS_PCNOC_SNOC] = &mas_pcnoc_snoc,
@@ -1304,7 +1304,7 @@ static const struct qcom_icc_desc msm8937_snoc = {
        .qos_offset = 0x7000,
 };
 
-static struct qcom_icc_node *msm8937_snoc_mm_nodes[] = {
+static struct qcom_icc_node * const msm8937_snoc_mm_nodes[] = {
        [MAS_JPEG] = &mas_jpeg,
        [MAS_MDP] = &mas_mdp,
        [MAS_VENUS] = &mas_venus,