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_bcm pointers

Pointers to struct qcom_icc_bcm are not modified, so they can be made
const for safety. The contents of struct qcom_icc_bcm must stay
non-const.

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

authored by

Krzysztof Kozlowski and committed by
Georgi Djakov
01c3f038 fcb3cd7e

+12 -12
+12 -12
drivers/interconnect/qcom/sc8280xp.c
··· 2009 2009 .nodes = { &xs_qdss_stm }, 2010 2010 }; 2011 2011 2012 - static struct qcom_icc_bcm *aggre1_noc_bcms[] = { 2012 + static struct qcom_icc_bcm * const aggre1_noc_bcms[] = { 2013 2013 &bcm_sn3, 2014 2014 &bcm_sn5, 2015 2015 }; ··· 2040 2040 .num_bcms = ARRAY_SIZE(aggre1_noc_bcms), 2041 2041 }; 2042 2042 2043 - static struct qcom_icc_bcm *aggre2_noc_bcms[] = { 2043 + static struct qcom_icc_bcm * const aggre2_noc_bcms[] = { 2044 2044 &bcm_ce0, 2045 2045 &bcm_pci0, 2046 2046 &bcm_sn4, ··· 2076 2076 .num_bcms = ARRAY_SIZE(aggre2_noc_bcms), 2077 2077 }; 2078 2078 2079 - static struct qcom_icc_bcm *clk_virt_bcms[] = { 2079 + static struct qcom_icc_bcm * const clk_virt_bcms[] = { 2080 2080 &bcm_ip0, 2081 2081 &bcm_qup0, 2082 2082 &bcm_qup1, ··· 2101 2101 .num_bcms = ARRAY_SIZE(clk_virt_bcms), 2102 2102 }; 2103 2103 2104 - static struct qcom_icc_bcm *config_noc_bcms[] = { 2104 + static struct qcom_icc_bcm * const config_noc_bcms[] = { 2105 2105 &bcm_cn0, 2106 2106 &bcm_cn1, 2107 2107 &bcm_cn2, ··· 2205 2205 .num_bcms = ARRAY_SIZE(config_noc_bcms), 2206 2206 }; 2207 2207 2208 - static struct qcom_icc_bcm *dc_noc_bcms[] = { 2208 + static struct qcom_icc_bcm * const dc_noc_bcms[] = { 2209 2209 }; 2210 2210 2211 2211 static struct qcom_icc_node * const dc_noc_nodes[] = { ··· 2221 2221 .num_bcms = ARRAY_SIZE(dc_noc_bcms), 2222 2222 }; 2223 2223 2224 - static struct qcom_icc_bcm *gem_noc_bcms[] = { 2224 + static struct qcom_icc_bcm * const gem_noc_bcms[] = { 2225 2225 &bcm_sh0, 2226 2226 &bcm_sh2, 2227 2227 }; ··· 2255 2255 .num_bcms = ARRAY_SIZE(gem_noc_bcms), 2256 2256 }; 2257 2257 2258 - static struct qcom_icc_bcm *lpass_ag_noc_bcms[] = { 2258 + static struct qcom_icc_bcm * const lpass_ag_noc_bcms[] = { 2259 2259 &bcm_sn9, 2260 2260 }; 2261 2261 ··· 2278 2278 .num_bcms = ARRAY_SIZE(lpass_ag_noc_bcms), 2279 2279 }; 2280 2280 2281 - static struct qcom_icc_bcm *mc_virt_bcms[] = { 2281 + static struct qcom_icc_bcm * const mc_virt_bcms[] = { 2282 2282 &bcm_acv, 2283 2283 &bcm_mc0, 2284 2284 }; ··· 2295 2295 .num_bcms = ARRAY_SIZE(mc_virt_bcms), 2296 2296 }; 2297 2297 2298 - static struct qcom_icc_bcm *mmss_noc_bcms[] = { 2298 + static struct qcom_icc_bcm * const mmss_noc_bcms[] = { 2299 2299 &bcm_mm0, 2300 2300 &bcm_mm1, 2301 2301 }; ··· 2326 2326 .num_bcms = ARRAY_SIZE(mmss_noc_bcms), 2327 2327 }; 2328 2328 2329 - static struct qcom_icc_bcm *nspa_noc_bcms[] = { 2329 + static struct qcom_icc_bcm * const nspa_noc_bcms[] = { 2330 2330 &bcm_nsa0, 2331 2331 &bcm_nsa1, 2332 2332 }; ··· 2346 2346 .num_bcms = ARRAY_SIZE(nspa_noc_bcms), 2347 2347 }; 2348 2348 2349 - static struct qcom_icc_bcm *nspb_noc_bcms[] = { 2349 + static struct qcom_icc_bcm * const nspb_noc_bcms[] = { 2350 2350 &bcm_nsb0, 2351 2351 &bcm_nsb1, 2352 2352 }; ··· 2366 2366 .num_bcms = ARRAY_SIZE(nspb_noc_bcms), 2367 2367 }; 2368 2368 2369 - static struct qcom_icc_bcm *system_noc_main_bcms[] = { 2369 + static struct qcom_icc_bcm * const system_noc_main_bcms[] = { 2370 2370 &bcm_sn0, 2371 2371 &bcm_sn1, 2372 2372 &bcm_sn3,