]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
clk: qcom: sm8750: Constify 'qcom_cc_desc' in SM8750 camcc
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Wed, 28 Jan 2026 15:43:07 +0000 (16:43 +0100)
committerBjorn Andersson <andersson@kernel.org>
Wed, 28 Jan 2026 20:23:35 +0000 (14:23 -0600)
'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.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260128154306.133047-2-krzysztof.kozlowski@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/cambistmclkcc-sm8750.c
drivers/clk/qcom/camcc-sm8750.c

index 952581f86db5b4aa517d931c794be6ff3b8b11e1..d889a8f6561d8409b24b89e2ba414f8f7bd79515 100644 (file)
@@ -421,7 +421,7 @@ static struct qcom_cc_driver_data cam_bist_mclk_cc_sm8750_driver_data = {
        .num_clk_cbcrs = ARRAY_SIZE(cam_bist_mclk_cc_sm8750_critical_cbcrs),
 };
 
-static struct qcom_cc_desc cam_bist_mclk_cc_sm8750_desc = {
+static const struct qcom_cc_desc cam_bist_mclk_cc_sm8750_desc = {
        .config = &cam_bist_mclk_cc_sm8750_regmap_config,
        .clks = cam_bist_mclk_cc_sm8750_clocks,
        .num_clks = ARRAY_SIZE(cam_bist_mclk_cc_sm8750_clocks),
index c09fa75be4576ce510c3a17fe0ddf51b0683b5fe..a797b783d4a9445ddcac40506f218d184635684a 100644 (file)
@@ -2673,7 +2673,7 @@ static struct qcom_cc_driver_data cam_cc_sm8750_driver_data = {
        .num_clk_cbcrs = ARRAY_SIZE(cam_cc_sm8750_critical_cbcrs),
 };
 
-static struct qcom_cc_desc cam_cc_sm8750_desc = {
+static const struct qcom_cc_desc cam_cc_sm8750_desc = {
        .config = &cam_cc_sm8750_regmap_config,
        .clks = cam_cc_sm8750_clocks,
        .num_clks = ARRAY_SIZE(cam_cc_sm8750_clocks),