drivers/clk/qcom/camcc-glymur.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
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>
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>
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
© 2016 - 2026 Red Hat, Inc.