diff options
| author | Imran Shaik <imran.shaik@oss.qualcomm.com> | 2025-09-09 15:17:59 +0530 |
|---|---|---|
| committer | Bjorn Andersson <andersson@kernel.org> | 2025-09-09 09:38:17 -0500 |
| commit | 9ff39b0468c3e04fee05d4e005d2fc03d28b1538 (patch) | |
| tree | 64fba47ae30ae4077d2f78c245946233c76fe270 | |
| parent | 6be1f55f33f615c3cafee96bc514a74a9fa43885 (diff) | |
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 <krzysztof.kozlowski@linaro.org>
Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250909-constify-dispcc-glymur-desc-fix-v1-1-6cb59730863f@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
| -rw-r--r-- | drivers/clk/qcom/dispcc-glymur.c | 2 |
1 files changed, 1 insertions, 1 deletions
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), |
