Commit 3d28502d authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Georgi Djakov

interconnect: qcom: sc8280xp: constify qcom_icc_desc

struct qcom_icc_desc is not modified so it can be made const for safety.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220427131154.302581-1-krzysztof.kozlowski@linaro.orgSigned-off-by: default avatarGeorgi Djakov <djakov@kernel.org>
parent f29dabda
...@@ -2033,7 +2033,7 @@ static struct qcom_icc_node *aggre1_noc_nodes[] = { ...@@ -2033,7 +2033,7 @@ static struct qcom_icc_node *aggre1_noc_nodes[] = {
[SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc, [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc,
}; };
static struct qcom_icc_desc sc8280xp_aggre1_noc = { static const struct qcom_icc_desc sc8280xp_aggre1_noc = {
.nodes = aggre1_noc_nodes, .nodes = aggre1_noc_nodes,
.num_nodes = ARRAY_SIZE(aggre1_noc_nodes), .num_nodes = ARRAY_SIZE(aggre1_noc_nodes),
.bcms = aggre1_noc_bcms, .bcms = aggre1_noc_bcms,
...@@ -2069,7 +2069,7 @@ static struct qcom_icc_node *aggre2_noc_nodes[] = { ...@@ -2069,7 +2069,7 @@ static struct qcom_icc_node *aggre2_noc_nodes[] = {
[SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc, [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc,
}; };
static struct qcom_icc_desc sc8280xp_aggre2_noc = { static const struct qcom_icc_desc sc8280xp_aggre2_noc = {
.nodes = aggre2_noc_nodes, .nodes = aggre2_noc_nodes,
.num_nodes = ARRAY_SIZE(aggre2_noc_nodes), .num_nodes = ARRAY_SIZE(aggre2_noc_nodes),
.bcms = aggre2_noc_bcms, .bcms = aggre2_noc_bcms,
...@@ -2094,7 +2094,7 @@ static struct qcom_icc_node *clk_virt_nodes[] = { ...@@ -2094,7 +2094,7 @@ static struct qcom_icc_node *clk_virt_nodes[] = {
[SLAVE_QUP_CORE_2] = &qup2_core_slave, [SLAVE_QUP_CORE_2] = &qup2_core_slave,
}; };
static struct qcom_icc_desc sc8280xp_clk_virt = { static const struct qcom_icc_desc sc8280xp_clk_virt = {
.nodes = clk_virt_nodes, .nodes = clk_virt_nodes,
.num_nodes = ARRAY_SIZE(clk_virt_nodes), .num_nodes = ARRAY_SIZE(clk_virt_nodes),
.bcms = clk_virt_bcms, .bcms = clk_virt_bcms,
...@@ -2198,7 +2198,7 @@ static struct qcom_icc_node *config_noc_nodes[] = { ...@@ -2198,7 +2198,7 @@ static struct qcom_icc_node *config_noc_nodes[] = {
[SLAVE_TCU] = &xs_sys_tcu_cfg, [SLAVE_TCU] = &xs_sys_tcu_cfg,
}; };
static struct qcom_icc_desc sc8280xp_config_noc = { static const struct qcom_icc_desc sc8280xp_config_noc = {
.nodes = config_noc_nodes, .nodes = config_noc_nodes,
.num_nodes = ARRAY_SIZE(config_noc_nodes), .num_nodes = ARRAY_SIZE(config_noc_nodes),
.bcms = config_noc_bcms, .bcms = config_noc_bcms,
...@@ -2214,7 +2214,7 @@ static struct qcom_icc_node *dc_noc_nodes[] = { ...@@ -2214,7 +2214,7 @@ static struct qcom_icc_node *dc_noc_nodes[] = {
[SLAVE_GEM_NOC_CFG] = &qns_gemnoc, [SLAVE_GEM_NOC_CFG] = &qns_gemnoc,
}; };
static struct qcom_icc_desc sc8280xp_dc_noc = { static const struct qcom_icc_desc sc8280xp_dc_noc = {
.nodes = dc_noc_nodes, .nodes = dc_noc_nodes,
.num_nodes = ARRAY_SIZE(dc_noc_nodes), .num_nodes = ARRAY_SIZE(dc_noc_nodes),
.bcms = dc_noc_bcms, .bcms = dc_noc_bcms,
...@@ -2248,7 +2248,7 @@ static struct qcom_icc_node *gem_noc_nodes[] = { ...@@ -2248,7 +2248,7 @@ static struct qcom_icc_node *gem_noc_nodes[] = {
[SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc, [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc,
}; };
static struct qcom_icc_desc sc8280xp_gem_noc = { static const struct qcom_icc_desc sc8280xp_gem_noc = {
.nodes = gem_noc_nodes, .nodes = gem_noc_nodes,
.num_nodes = ARRAY_SIZE(gem_noc_nodes), .num_nodes = ARRAY_SIZE(gem_noc_nodes),
.bcms = gem_noc_bcms, .bcms = gem_noc_bcms,
...@@ -2271,7 +2271,7 @@ static struct qcom_icc_node *lpass_ag_noc_nodes[] = { ...@@ -2271,7 +2271,7 @@ static struct qcom_icc_node *lpass_ag_noc_nodes[] = {
[SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc, [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc,
}; };
static struct qcom_icc_desc sc8280xp_lpass_ag_noc = { static const struct qcom_icc_desc sc8280xp_lpass_ag_noc = {
.nodes = lpass_ag_noc_nodes, .nodes = lpass_ag_noc_nodes,
.num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes), .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes),
.bcms = lpass_ag_noc_bcms, .bcms = lpass_ag_noc_bcms,
...@@ -2288,7 +2288,7 @@ static struct qcom_icc_node *mc_virt_nodes[] = { ...@@ -2288,7 +2288,7 @@ static struct qcom_icc_node *mc_virt_nodes[] = {
[SLAVE_EBI1] = &ebi, [SLAVE_EBI1] = &ebi,
}; };
static struct qcom_icc_desc sc8280xp_mc_virt = { static const struct qcom_icc_desc sc8280xp_mc_virt = {
.nodes = mc_virt_nodes, .nodes = mc_virt_nodes,
.num_nodes = ARRAY_SIZE(mc_virt_nodes), .num_nodes = ARRAY_SIZE(mc_virt_nodes),
.bcms = mc_virt_bcms, .bcms = mc_virt_bcms,
...@@ -2319,7 +2319,7 @@ static struct qcom_icc_node *mmss_noc_nodes[] = { ...@@ -2319,7 +2319,7 @@ static struct qcom_icc_node *mmss_noc_nodes[] = {
[SLAVE_SERVICE_MNOC] = &srvc_mnoc, [SLAVE_SERVICE_MNOC] = &srvc_mnoc,
}; };
static struct qcom_icc_desc sc8280xp_mmss_noc = { static const struct qcom_icc_desc sc8280xp_mmss_noc = {
.nodes = mmss_noc_nodes, .nodes = mmss_noc_nodes,
.num_nodes = ARRAY_SIZE(mmss_noc_nodes), .num_nodes = ARRAY_SIZE(mmss_noc_nodes),
.bcms = mmss_noc_bcms, .bcms = mmss_noc_bcms,
...@@ -2339,7 +2339,7 @@ static struct qcom_icc_node *nspa_noc_nodes[] = { ...@@ -2339,7 +2339,7 @@ static struct qcom_icc_node *nspa_noc_nodes[] = {
[SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc, [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc,
}; };
static struct qcom_icc_desc sc8280xp_nspa_noc = { static const struct qcom_icc_desc sc8280xp_nspa_noc = {
.nodes = nspa_noc_nodes, .nodes = nspa_noc_nodes,
.num_nodes = ARRAY_SIZE(nspa_noc_nodes), .num_nodes = ARRAY_SIZE(nspa_noc_nodes),
.bcms = nspa_noc_bcms, .bcms = nspa_noc_bcms,
...@@ -2359,7 +2359,7 @@ static struct qcom_icc_node *nspb_noc_nodes[] = { ...@@ -2359,7 +2359,7 @@ static struct qcom_icc_node *nspb_noc_nodes[] = {
[SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc, [SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc,
}; };
static struct qcom_icc_desc sc8280xp_nspb_noc = { static const struct qcom_icc_desc sc8280xp_nspb_noc = {
.nodes = nspb_noc_nodes, .nodes = nspb_noc_nodes,
.num_nodes = ARRAY_SIZE(nspb_noc_nodes), .num_nodes = ARRAY_SIZE(nspb_noc_nodes),
.bcms = nspb_noc_bcms, .bcms = nspb_noc_bcms,
...@@ -2388,7 +2388,7 @@ static struct qcom_icc_node *system_noc_main_nodes[] = { ...@@ -2388,7 +2388,7 @@ static struct qcom_icc_node *system_noc_main_nodes[] = {
[SLAVE_SERVICE_SNOC] = &srvc_snoc, [SLAVE_SERVICE_SNOC] = &srvc_snoc,
}; };
static struct qcom_icc_desc sc8280xp_system_noc_main = { static const struct qcom_icc_desc sc8280xp_system_noc_main = {
.nodes = system_noc_main_nodes, .nodes = system_noc_main_nodes,
.num_nodes = ARRAY_SIZE(system_noc_main_nodes), .num_nodes = ARRAY_SIZE(system_noc_main_nodes),
.bcms = system_noc_main_bcms, .bcms = system_noc_main_bcms,
......
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