summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>2026-01-28 18:43:07 +0300
committerBjorn Andersson <andersson@kernel.org>2026-01-28 23:23:35 +0300
commit012e012e4917da06b512a3074980c3091949befa (patch)
tree9d5be71a40e852b19c1ab0e8d6981e69c47d7423
parent2583cb925ca1ce450aa5d74a05a67448db970193 (diff)
downloadlinux-012e012e4917da06b512a3074980c3091949befa.tar.xz
clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc
'struct qcom_cc_desc' is passed to qcom_cc_map() and qcom_cc_really_probe() only as pointer to const, so make the memory const for safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260128154306.133047-2-krzysztof.kozlowski@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org>
-rw-r--r--drivers/clk/qcom/cambistmclkcc-sm8750.c2
-rw-r--r--drivers/clk/qcom/camcc-sm8750.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/qcom/cambistmclkcc-sm8750.c b/drivers/clk/qcom/cambistmclkcc-sm8750.c
index 952581f86db5..d889a8f6561d 100644
--- a/drivers/clk/qcom/cambistmclkcc-sm8750.c
+++ b/drivers/clk/qcom/cambistmclkcc-sm8750.c
@@ -421,7 +421,7 @@ static struct qcom_cc_driver_data cam_bist_mclk_cc_sm8750_driver_data = {
.num_clk_cbcrs = ARRAY_SIZE(cam_bist_mclk_cc_sm8750_critical_cbcrs),
};
-static struct qcom_cc_desc cam_bist_mclk_cc_sm8750_desc = {
+static const struct qcom_cc_desc cam_bist_mclk_cc_sm8750_desc = {
.config = &cam_bist_mclk_cc_sm8750_regmap_config,
.clks = cam_bist_mclk_cc_sm8750_clocks,
.num_clks = ARRAY_SIZE(cam_bist_mclk_cc_sm8750_clocks),
diff --git a/drivers/clk/qcom/camcc-sm8750.c b/drivers/clk/qcom/camcc-sm8750.c
index c09fa75be457..a797b783d4a9 100644
--- a/drivers/clk/qcom/camcc-sm8750.c
+++ b/drivers/clk/qcom/camcc-sm8750.c
@@ -2673,7 +2673,7 @@ static struct qcom_cc_driver_data cam_cc_sm8750_driver_data = {
.num_clk_cbcrs = ARRAY_SIZE(cam_cc_sm8750_critical_cbcrs),
};
-static struct qcom_cc_desc cam_cc_sm8750_desc = {
+static const struct qcom_cc_desc cam_cc_sm8750_desc = {
.config = &cam_cc_sm8750_regmap_config,
.clks = cam_cc_sm8750_clocks,
.num_clks = ARRAY_SIZE(cam_cc_sm8750_clocks),