]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
clk: qcom: videocc-glymur: Constify qcom_cc_desc
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Tue, 31 Mar 2026 08:55:22 +0000 (10:55 +0200)
committerBjorn Andersson <andersson@kernel.org>
Sun, 5 Apr 2026 19:30:09 +0000 (14:30 -0500)
Static 'struct qcom_cc_desc' is not modified by drivers and can be made
const for code safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260331085521.37337-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/videocc-glymur.c

index bb3aae6b839600dd548802ec84005926bb9f6d2c..ea20605dd1e5bb9c65a05be17aaad146e956bbd3 100644 (file)
@@ -495,7 +495,7 @@ static struct qcom_cc_driver_data video_cc_glymur_driver_data = {
        .clk_regs_configure = clk_glymur_regs_configure,
 };
 
-static struct qcom_cc_desc video_cc_glymur_desc = {
+static const struct qcom_cc_desc video_cc_glymur_desc = {
        .config = &video_cc_glymur_regmap_config,
        .clks = video_cc_glymur_clocks,
        .num_clks = ARRAY_SIZE(video_cc_glymur_clocks),