mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc
@ 2026-01-28 15:43 Krzysztof Kozlowski
  2026-01-28 16:06 ` Dmitry Baryshkov
  2026-01-28 16:48 ` Taniya Das
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-01-28 15:43 UTC (permalink / raw)
  To: Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Maxime Coquelin, Alexandre Torgue, linux-arm-msm, linux-clk,
	linux-stm32, linux-arm-kernel, linux-kernel
  Cc: Krzysztof Kozlowski

'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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc
  2026-01-28 15:43 [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc Krzysztof Kozlowski
@ 2026-01-28 16:06 ` Dmitry Baryshkov
  2026-01-28 16:48 ` Taniya Das
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Baryshkov @ 2026-01-28 16:06 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: Bjorn Andersson, Michael Turquette, Stephen Boyd,
	Maxime Coquelin, Alexandre Torgue, linux-arm-msm, linux-clk,
	linux-stm32, linux-arm-kernel, linux-kernel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc
  2026-01-28 15:43 [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc Krzysztof Kozlowski
  2026-01-28 16:06 ` Dmitry Baryshkov
@ 2026-01-28 16:48 ` Taniya Das
  1 sibling, 0 replies; 3+ messages in thread
From: Taniya Das @ 2026-01-28 16:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Bjorn Andersson, Michael Turquette,
	Stephen Boyd, Maxime Coquelin, Alexandre Torgue, linux-arm-msm,
	linux-clk, linux-stm32, linux-arm-kernel, linux-kernel


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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-01-28 16:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-01-28 15:43 [PATCH] clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc Krzysztof Kozlowski
2026-01-28 16:06 ` Dmitry Baryshkov
2026-01-28 16:48 ` Taniya Das

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®