From: Imran Shaik Date: Tue, 9 Sep 2025 09:47:59 +0000 (+0530) Subject: clk: qcom: dispcc-glymur: Constify 'struct qcom_cc_desc' X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9ff39b0468c3e04fee05d4e005d2fc03d28b1538;p=users%2Fhch%2Fmisc.git clk: qcom: dispcc-glymur: Constify 'struct qcom_cc_desc' 'struct qcom_cc_desc' is passed to qcom_cc_map() and qcom_cc_really_probe() only as pointer to const, so make the memory const for safety. Suggested-by: Krzysztof Kozlowski Signed-off-by: Imran Shaik Reviewed-by: Krzysztof Kozlowski Reviewed-by: Dmitry Baryshkov Link: https://lore.kernel.org/r/20250909-constify-dispcc-glymur-desc-fix-v1-1-6cb59730863f@oss.qualcomm.com Signed-off-by: Bjorn Andersson --- diff --git a/drivers/clk/qcom/dispcc-glymur.c b/drivers/clk/qcom/dispcc-glymur.c index d755b41cf458..5203fa6383f6 100644 --- a/drivers/clk/qcom/dispcc-glymur.c +++ b/drivers/clk/qcom/dispcc-glymur.c @@ -1945,7 +1945,7 @@ static struct qcom_cc_driver_data disp_cc_glymur_driver_data = { .num_clk_cbcrs = ARRAY_SIZE(disp_cc_glymur_critical_cbcrs), }; -static struct qcom_cc_desc disp_cc_glymur_desc = { +static const struct qcom_cc_desc disp_cc_glymur_desc = { .config = &disp_cc_glymur_regmap_config, .clks = disp_cc_glymur_clocks, .num_clks = ARRAY_SIZE(disp_cc_glymur_clocks),