diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2022-04-12 12:26:23 +0200 |
---|---|---|
committer | Georgi Djakov <djakov@kernel.org> | 2022-04-23 14:11:57 +0200 |
commit | 7123f8836392f15b33ed49b47b7d4001a9577cf5 (patch) | |
tree | ee58260e81fc699b008dcdea083b6b121d9f323c /drivers/interconnect/qcom/icc-rpmh.h | |
parent | interconnect: qcom: constify icc_node pointers (diff) | |
download | linux-7123f8836392f15b33ed49b47b7d4001a9577cf5.tar.xz linux-7123f8836392f15b33ed49b47b7d4001a9577cf5.zip |
interconnect: qcom: 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/20220412102623.227607-3-krzysztof.kozlowski@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>
Diffstat (limited to 'drivers/interconnect/qcom/icc-rpmh.h')
-rw-r--r-- | drivers/interconnect/qcom/icc-rpmh.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/interconnect/qcom/icc-rpmh.h b/drivers/interconnect/qcom/icc-rpmh.h index 5dfc26072593..d29929461c17 100644 --- a/drivers/interconnect/qcom/icc-rpmh.h +++ b/drivers/interconnect/qcom/icc-rpmh.h @@ -22,7 +22,7 @@ struct qcom_icc_provider { struct icc_provider provider; struct device *dev; - struct qcom_icc_bcm **bcms; + struct qcom_icc_bcm * const *bcms; size_t num_bcms; struct bcm_voter *voter; }; @@ -114,7 +114,7 @@ struct qcom_icc_fabric { struct qcom_icc_desc { struct qcom_icc_node * const *nodes; size_t num_nodes; - struct qcom_icc_bcm **bcms; + struct qcom_icc_bcm * const *bcms; size_t num_bcms; }; |