* [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list
@ 2026-07-14 5:29 Jagadeesh Kona
2026-07-14 6:39 ` Konrad Dybcio
2026-07-20 17:21 ` Bjorn Andersson
0 siblings, 2 replies; 3+ messages in thread
From: Jagadeesh Kona @ 2026-07-14 5:29 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Brian Masney
Cc: linux-arm-msm, linux-clk, linux-kernel, Jagadeesh Kona
The qcom_cc_driver_data and critical CBCRs list are never modified by
common code and are expected to be const. Hence add const qualifier for
these fields.
Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
---
drivers/clk/qcom/camcc-glymur.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/clk/qcom/camcc-glymur.c b/drivers/clk/qcom/camcc-glymur.c
index a80f05b7bc4841f97d03544c11a77e8821437925..044cc590624e5fa5c3254c48defb754e4b856e63 100644
--- a/drivers/clk/qcom/camcc-glymur.c
+++ b/drivers/clk/qcom/camcc-glymur.c
@@ -2223,7 +2223,7 @@ static struct clk_alpha_pll *cam_cc_glymur_plls[] = {
&cam_cc_pll5,
};
-static u32 cam_cc_glymur_critical_cbcrs[] = {
+static const u32 cam_cc_glymur_critical_cbcrs[] = {
0x13960, /* CAM_CC_GDSC_CLK */
0x1397c, /* CAM_CC_SLEEP_CLK */
};
@@ -2236,7 +2236,7 @@ static const struct regmap_config cam_cc_glymur_regmap_config = {
.fast_io = true,
};
-static struct qcom_cc_driver_data cam_cc_glymur_driver_data = {
+static const struct qcom_cc_driver_data cam_cc_glymur_driver_data = {
.alpha_plls = cam_cc_glymur_plls,
.num_alpha_plls = ARRAY_SIZE(cam_cc_glymur_plls),
.clk_cbcrs = cam_cc_glymur_critical_cbcrs,
---
base-commit: 49362394dad7df66c274c867a271394c10ca2bb8
change-id: 20260714-glymur_camcc_const_fixes-fb04b120c1b4
Best regards,
--
Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list
2026-07-14 5:29 [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list Jagadeesh Kona
@ 2026-07-14 6:39 ` Konrad Dybcio
2026-07-20 17:21 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Konrad Dybcio @ 2026-07-14 6:39 UTC (permalink / raw)
To: Jagadeesh Kona, Bjorn Andersson, Michael Turquette, Stephen Boyd,
Brian Masney
Cc: linux-arm-msm, linux-clk, linux-kernel
On 7/14/26 7:29 AM, Jagadeesh Kona wrote:
> The qcom_cc_driver_data and critical CBCRs list are never modified by
> common code and are expected to be const. Hence add const qualifier for
> these fields.
>
> Signed-off-by: Jagadeesh Kona <jagadeesh.kona@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list
2026-07-14 5:29 [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list Jagadeesh Kona
2026-07-14 6:39 ` Konrad Dybcio
@ 2026-07-20 17:21 ` Bjorn Andersson
1 sibling, 0 replies; 3+ messages in thread
From: Bjorn Andersson @ 2026-07-20 17:21 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Brian Masney, Jagadeesh Kona
Cc: linux-arm-msm, linux-clk, linux-kernel
On Tue, 14 Jul 2026 10:59:35 +0530, Jagadeesh Kona wrote:
> The qcom_cc_driver_data and critical CBCRs list are never modified by
> common code and are expected to be const. Hence add const qualifier for
> these fields.
>
>
Applied, thanks!
[1/1] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list
commit: a9954d40de71cee344dbf9d61600b79379f74bb9
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-20 17:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14 5:29 [PATCH] clk: qcom: camcc-glymur: Add const qualifier for driver_data & CBCRs list Jagadeesh Kona
2026-07-14 6:39 ` Konrad Dybcio
2026-07-20 17:21 ` Bjorn Andersson
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®