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

interconnect: qcom: sc8280xp: constify icc_node pointers

Pointers to struct qcom_icc_node (and similar structures) are not
modified, so they can be made const for safety. The contents of struct
qcom_icc_node must stay non-const.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220427131154.302581-2-krzysztof.kozlowski@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Georgi Djakov
fcb3cd7e 3d28502d

+12 -12
+12 -12
drivers/interconnect/qcom/sc8280xp.c
··· 2014 2014 &bcm_sn5, 2015 2015 }; 2016 2016 2017 - static struct qcom_icc_node *aggre1_noc_nodes[] = { 2017 + static struct qcom_icc_node * const aggre1_noc_nodes[] = { 2018 2018 [MASTER_QSPI_0] = &qhm_qspi, 2019 2019 [MASTER_QUP_1] = &qhm_qup1, 2020 2020 [MASTER_QUP_2] = &qhm_qup2, ··· 2046 2046 &bcm_sn4, 2047 2047 }; 2048 2048 2049 - static struct qcom_icc_node *aggre2_noc_nodes[] = { 2049 + static struct qcom_icc_node * const aggre2_noc_nodes[] = { 2050 2050 [MASTER_QDSS_BAM] = &qhm_qdss_bam, 2051 2051 [MASTER_QUP_0] = &qhm_qup0, 2052 2052 [MASTER_A2NOC_CFG] = &qnm_a2noc_cfg, ··· 2083 2083 &bcm_qup2, 2084 2084 }; 2085 2085 2086 - static struct qcom_icc_node *clk_virt_nodes[] = { 2086 + static struct qcom_icc_node * const clk_virt_nodes[] = { 2087 2087 [MASTER_IPA_CORE] = &ipa_core_master, 2088 2088 [MASTER_QUP_CORE_0] = &qup0_core_master, 2089 2089 [MASTER_QUP_CORE_1] = &qup1_core_master, ··· 2110 2110 &bcm_sn10, 2111 2111 }; 2112 2112 2113 - static struct qcom_icc_node *config_noc_nodes[] = { 2113 + static struct qcom_icc_node * const config_noc_nodes[] = { 2114 2114 [MASTER_GEM_NOC_CNOC] = &qnm_gemnoc_cnoc, 2115 2115 [MASTER_GEM_NOC_PCIE_SNOC] = &qnm_gemnoc_pcie, 2116 2116 [SLAVE_AHB2PHY_0] = &qhs_ahb2phy0, ··· 2208 2208 static struct qcom_icc_bcm *dc_noc_bcms[] = { 2209 2209 }; 2210 2210 2211 - static struct qcom_icc_node *dc_noc_nodes[] = { 2211 + static struct qcom_icc_node * const dc_noc_nodes[] = { 2212 2212 [MASTER_CNOC_DC_NOC] = &qnm_cnoc_dc_noc, 2213 2213 [SLAVE_LLCC_CFG] = &qhs_llcc, 2214 2214 [SLAVE_GEM_NOC_CFG] = &qns_gemnoc, ··· 2226 2226 &bcm_sh2, 2227 2227 }; 2228 2228 2229 - static struct qcom_icc_node *gem_noc_nodes[] = { 2229 + static struct qcom_icc_node * const gem_noc_nodes[] = { 2230 2230 [MASTER_GPU_TCU] = &alm_gpu_tcu, 2231 2231 [MASTER_PCIE_TCU] = &alm_pcie_tcu, 2232 2232 [MASTER_SYS_TCU] = &alm_sys_tcu, ··· 2259 2259 &bcm_sn9, 2260 2260 }; 2261 2261 2262 - static struct qcom_icc_node *lpass_ag_noc_nodes[] = { 2262 + static struct qcom_icc_node * const lpass_ag_noc_nodes[] = { 2263 2263 [MASTER_CNOC_LPASS_AG_NOC] = &qhm_config_noc, 2264 2264 [MASTER_LPASS_PROC] = &qxm_lpass_dsp, 2265 2265 [SLAVE_LPASS_CORE_CFG] = &qhs_lpass_core, ··· 2283 2283 &bcm_mc0, 2284 2284 }; 2285 2285 2286 - static struct qcom_icc_node *mc_virt_nodes[] = { 2286 + static struct qcom_icc_node * const mc_virt_nodes[] = { 2287 2287 [MASTER_LLCC] = &llcc_mc, 2288 2288 [SLAVE_EBI1] = &ebi, 2289 2289 }; ··· 2300 2300 &bcm_mm1, 2301 2301 }; 2302 2302 2303 - static struct qcom_icc_node *mmss_noc_nodes[] = { 2303 + static struct qcom_icc_node * const mmss_noc_nodes[] = { 2304 2304 [MASTER_CAMNOC_HF] = &qnm_camnoc_hf, 2305 2305 [MASTER_MDP0] = &qnm_mdp0_0, 2306 2306 [MASTER_MDP1] = &qnm_mdp0_1, ··· 2331 2331 &bcm_nsa1, 2332 2332 }; 2333 2333 2334 - static struct qcom_icc_node *nspa_noc_nodes[] = { 2334 + static struct qcom_icc_node * const nspa_noc_nodes[] = { 2335 2335 [MASTER_CDSP_NOC_CFG] = &qhm_nsp_noc_config, 2336 2336 [MASTER_CDSP_PROC] = &qxm_nsp, 2337 2337 [SLAVE_CDSP_MEM_NOC] = &qns_nsp_gemnoc, ··· 2351 2351 &bcm_nsb1, 2352 2352 }; 2353 2353 2354 - static struct qcom_icc_node *nspb_noc_nodes[] = { 2354 + static struct qcom_icc_node * const nspb_noc_nodes[] = { 2355 2355 [MASTER_CDSPB_NOC_CFG] = &qhm_nspb_noc_config, 2356 2356 [MASTER_CDSP_PROC_B] = &qxm_nspb, 2357 2357 [SLAVE_CDSPB_MEM_NOC] = &qns_nspb_gemnoc, ··· 2375 2375 &bcm_sn9, 2376 2376 }; 2377 2377 2378 - static struct qcom_icc_node *system_noc_main_nodes[] = { 2378 + static struct qcom_icc_node * const system_noc_main_nodes[] = { 2379 2379 [MASTER_A1NOC_SNOC] = &qnm_aggre1_noc, 2380 2380 [MASTER_A2NOC_SNOC] = &qnm_aggre2_noc, 2381 2381 [MASTER_USB_NOC_SNOC] = &qnm_aggre_usb_noc,