drivers/clk/qcom/cambistmclkcc-sm8750.c | 2 +- drivers/clk/qcom/camcc-sm8750.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
'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>
---
drivers/clk/qcom/cambistmclkcc-sm8750.c | 2 +-
drivers/clk/qcom/camcc-sm8750.c | 2 +-
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),
--
2.51.0
On 1/28/2026 9:13 PM, Krzysztof Kozlowski wrote: > '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> > --- > drivers/clk/qcom/cambistmclkcc-sm8750.c | 2 +- > drivers/clk/qcom/camcc-sm8750.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> -- Thanks, Taniya Das
On Wed, Jan 28, 2026 at 04:43:07PM +0100, Krzysztof Kozlowski wrote: > '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> > --- > drivers/clk/qcom/cambistmclkcc-sm8750.c | 2 +- > drivers/clk/qcom/camcc-sm8750.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> -- With best wishes Dmitry
© 2016 - 2026 Red Hat, Inc.