Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220427131154.302581-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Georgi Djakov
3d28502d f29dabda

+12 -12
+12 -12
drivers/interconnect/qcom/sc8280xp.c
··· 2033 2033 [SLAVE_SERVICE_A1NOC] = &srvc_aggre1_noc, 2034 2034 }; 2035 2035 2036 - static struct qcom_icc_desc sc8280xp_aggre1_noc = { 2036 + static const struct qcom_icc_desc sc8280xp_aggre1_noc = { 2037 2037 .nodes = aggre1_noc_nodes, 2038 2038 .num_nodes = ARRAY_SIZE(aggre1_noc_nodes), 2039 2039 .bcms = aggre1_noc_bcms, ··· 2069 2069 [SLAVE_SERVICE_A2NOC] = &srvc_aggre2_noc, 2070 2070 }; 2071 2071 2072 - static struct qcom_icc_desc sc8280xp_aggre2_noc = { 2072 + static const struct qcom_icc_desc sc8280xp_aggre2_noc = { 2073 2073 .nodes = aggre2_noc_nodes, 2074 2074 .num_nodes = ARRAY_SIZE(aggre2_noc_nodes), 2075 2075 .bcms = aggre2_noc_bcms, ··· 2094 2094 [SLAVE_QUP_CORE_2] = &qup2_core_slave, 2095 2095 }; 2096 2096 2097 - static struct qcom_icc_desc sc8280xp_clk_virt = { 2097 + static const struct qcom_icc_desc sc8280xp_clk_virt = { 2098 2098 .nodes = clk_virt_nodes, 2099 2099 .num_nodes = ARRAY_SIZE(clk_virt_nodes), 2100 2100 .bcms = clk_virt_bcms, ··· 2198 2198 [SLAVE_TCU] = &xs_sys_tcu_cfg, 2199 2199 }; 2200 2200 2201 - static struct qcom_icc_desc sc8280xp_config_noc = { 2201 + static const struct qcom_icc_desc sc8280xp_config_noc = { 2202 2202 .nodes = config_noc_nodes, 2203 2203 .num_nodes = ARRAY_SIZE(config_noc_nodes), 2204 2204 .bcms = config_noc_bcms, ··· 2214 2214 [SLAVE_GEM_NOC_CFG] = &qns_gemnoc, 2215 2215 }; 2216 2216 2217 - static struct qcom_icc_desc sc8280xp_dc_noc = { 2217 + static const struct qcom_icc_desc sc8280xp_dc_noc = { 2218 2218 .nodes = dc_noc_nodes, 2219 2219 .num_nodes = ARRAY_SIZE(dc_noc_nodes), 2220 2220 .bcms = dc_noc_bcms, ··· 2248 2248 [SLAVE_SERVICE_GEM_NOC] = &srvc_sys_gemnoc, 2249 2249 }; 2250 2250 2251 - static struct qcom_icc_desc sc8280xp_gem_noc = { 2251 + static const struct qcom_icc_desc sc8280xp_gem_noc = { 2252 2252 .nodes = gem_noc_nodes, 2253 2253 .num_nodes = ARRAY_SIZE(gem_noc_nodes), 2254 2254 .bcms = gem_noc_bcms, ··· 2271 2271 [SLAVE_SERVICE_LPASS_AG_NOC] = &srvc_niu_lpass_agnoc, 2272 2272 }; 2273 2273 2274 - static struct qcom_icc_desc sc8280xp_lpass_ag_noc = { 2274 + static const struct qcom_icc_desc sc8280xp_lpass_ag_noc = { 2275 2275 .nodes = lpass_ag_noc_nodes, 2276 2276 .num_nodes = ARRAY_SIZE(lpass_ag_noc_nodes), 2277 2277 .bcms = lpass_ag_noc_bcms, ··· 2288 2288 [SLAVE_EBI1] = &ebi, 2289 2289 }; 2290 2290 2291 - static struct qcom_icc_desc sc8280xp_mc_virt = { 2291 + static const struct qcom_icc_desc sc8280xp_mc_virt = { 2292 2292 .nodes = mc_virt_nodes, 2293 2293 .num_nodes = ARRAY_SIZE(mc_virt_nodes), 2294 2294 .bcms = mc_virt_bcms, ··· 2319 2319 [SLAVE_SERVICE_MNOC] = &srvc_mnoc, 2320 2320 }; 2321 2321 2322 - static struct qcom_icc_desc sc8280xp_mmss_noc = { 2322 + static const struct qcom_icc_desc sc8280xp_mmss_noc = { 2323 2323 .nodes = mmss_noc_nodes, 2324 2324 .num_nodes = ARRAY_SIZE(mmss_noc_nodes), 2325 2325 .bcms = mmss_noc_bcms, ··· 2339 2339 [SLAVE_SERVICE_NSP_NOC] = &service_nsp_noc, 2340 2340 }; 2341 2341 2342 - static struct qcom_icc_desc sc8280xp_nspa_noc = { 2342 + static const struct qcom_icc_desc sc8280xp_nspa_noc = { 2343 2343 .nodes = nspa_noc_nodes, 2344 2344 .num_nodes = ARRAY_SIZE(nspa_noc_nodes), 2345 2345 .bcms = nspa_noc_bcms, ··· 2359 2359 [SLAVE_SERVICE_NSPB_NOC] = &service_nspb_noc, 2360 2360 }; 2361 2361 2362 - static struct qcom_icc_desc sc8280xp_nspb_noc = { 2362 + static const struct qcom_icc_desc sc8280xp_nspb_noc = { 2363 2363 .nodes = nspb_noc_nodes, 2364 2364 .num_nodes = ARRAY_SIZE(nspb_noc_nodes), 2365 2365 .bcms = nspb_noc_bcms, ··· 2388 2388 [SLAVE_SERVICE_SNOC] = &srvc_snoc, 2389 2389 }; 2390 2390 2391 - static struct qcom_icc_desc sc8280xp_system_noc_main = { 2391 + static const struct qcom_icc_desc sc8280xp_system_noc_main = { 2392 2392 .nodes = system_noc_main_nodes, 2393 2393 .num_nodes = ARRAY_SIZE(system_noc_main_nodes), 2394 2394 .bcms = system_noc_main_bcms,