* [PATCH] clk: qcom: hawi: Constify known static data
@ 2026-11-12 15:43 Krzysztof Kozlowski
2026-11-13 8:03 ` Konrad Dybcio
0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2026-11-12 15:43 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet, linux-arm-msm, linux-clk, linux-kernel
Cc: Krzysztof Kozlowski
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@oss.qualcomm.com>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] clk: qcom: hawi: Constify known static data
2026-11-12 15:43 [PATCH] clk: qcom: hawi: Constify known static data Krzysztof Kozlowski
@ 2026-11-13 8:03 ` Konrad Dybcio
0 siblings, 0 replies; 2+ messages in thread
From: Konrad Dybcio @ 2026-11-13 8:03 UTC (permalink / raw)
To: Krzysztof Kozlowski, Bjorn Andersson, Abel Vesa, Stephen Boyd,
Brian Masney, Jerome Brunet, linux-arm-msm, linux-clk,
linux-kernel
On 11/12/26 4:43 PM, Krzysztof Kozlowski wrote:
> 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@oss.qualcomm.com>
> ---
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Konrad
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-13 8:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 15:43 [PATCH] clk: qcom: hawi: Constify known static data Krzysztof Kozlowski
2026-11-13 8:03 ` Konrad Dybcio
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®