Skip to content

Commit 9ff39b0

Browse files
imrashaiandersson
authored andcommitted
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>
1 parent 6be1f55 commit 9ff39b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/clk/qcom/dispcc-glymur.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,7 @@ static struct qcom_cc_driver_data disp_cc_glymur_driver_data = {
19451945
.num_clk_cbcrs = ARRAY_SIZE(disp_cc_glymur_critical_cbcrs),
19461946
};
19471947

1948-
static struct qcom_cc_desc disp_cc_glymur_desc = {
1948+
static const struct qcom_cc_desc disp_cc_glymur_desc = {
19491949
.config = &disp_cc_glymur_regmap_config,
19501950
.clks = disp_cc_glymur_clocks,
19511951
.num_clks = ARRAY_SIZE(disp_cc_glymur_clocks),

0 commit comments

Comments
 (0)