[PATCH] clk: qcom: hawi: Constify known static data

From: Krzysztof Kozlowski

Date: Thu Nov 12 2026 - 11:02:54 EST


The static 'struct qcom_cc_driver_data' and array 'xxx_critical_cbcrs'
are already treated by common.c code as pointers to const, so constify
few remaining pieces.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
---
drivers/clk/qcom/gpucc-hawi.c | 4 ++--
drivers/clk/qcom/videocc-hawi.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/clk/qcom/gpucc-hawi.c b/drivers/clk/qcom/gpucc-hawi.c
index 3deb7edf7810..ab6c4598bae6 100644
--- a/drivers/clk/qcom/gpucc-hawi.c
+++ b/drivers/clk/qcom/gpucc-hawi.c
@@ -411,7 +411,7 @@ static struct clk_alpha_pll *gpu_cc_hawi_plls[] = {
&gpu_cc_pll0,
};

-static u32 gpu_cc_hawi_critical_cbcrs[] = {
+static const u32 gpu_cc_hawi_critical_cbcrs[] = {
0x93a4, /* GPU_CC_CB_CLK */
0x9704, /* GPU_CC_MXG_XO_CLK */
0x90e4, /* GPU_CC_CXO_CLK */
@@ -429,7 +429,7 @@ static const struct regmap_config gpu_cc_hawi_regmap_config = {
.fast_io = true,
};

-static struct qcom_cc_driver_data gpu_cc_hawi_driver_data = {
+static const struct qcom_cc_driver_data gpu_cc_hawi_driver_data = {
.alpha_plls = gpu_cc_hawi_plls,
.num_alpha_plls = ARRAY_SIZE(gpu_cc_hawi_plls),
.clk_cbcrs = gpu_cc_hawi_critical_cbcrs,
diff --git a/drivers/clk/qcom/videocc-hawi.c b/drivers/clk/qcom/videocc-hawi.c
index 318270105dfe..fe9691a02e2b 100644
--- a/drivers/clk/qcom/videocc-hawi.c
+++ b/drivers/clk/qcom/videocc-hawi.c
@@ -795,7 +795,7 @@ static const struct regmap_config video_cc_hawi_regmap_config = {
.fast_io = true,
};

-static struct qcom_cc_driver_data video_cc_hawi_driver_data = {
+static const struct qcom_cc_driver_data video_cc_hawi_driver_data = {
.alpha_plls = video_cc_hawi_plls,
.num_alpha_plls = ARRAY_SIZE(video_cc_hawi_plls),
.clk_cbcrs = video_cc_hawi_critical_cbcrs,
--
2.53.0