]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
clk: qcom: videocc: Constify 'struct qcom_cc_desc'
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Fri, 28 Feb 2025 14:59:41 +0000 (15:59 +0100)
committerBjorn Andersson <andersson@kernel.org>
Tue, 4 Mar 2025 04:29:38 +0000 (22:29 -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@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250228-clk-qcom-const-v1-4-611ab80d45e4@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/clk/qcom/videocc-sa8775p.c
drivers/clk/qcom/videocc-sm8350.c
drivers/clk/qcom/videocc-sm8450.c
drivers/clk/qcom/videocc-sm8550.c

index db492984fd7d6565f2db9608fc37d29737121b60..2476201dcd20386aaa2b590797657da86fa30bbb 100644 (file)
@@ -512,7 +512,7 @@ static const struct regmap_config video_cc_sa8775p_regmap_config = {
        .fast_io = true,
 };
 
-static struct qcom_cc_desc video_cc_sa8775p_desc = {
+static const struct qcom_cc_desc video_cc_sa8775p_desc = {
        .config = &video_cc_sa8775p_regmap_config,
        .clks = video_cc_sa8775p_clocks,
        .num_clks = ARRAY_SIZE(video_cc_sa8775p_clocks),
index 874d4da95ff8db9edec5c84dec43a6290aa5aa38..057a9474894abfd26fb1a8bcf328d38efd74d5b1 100644 (file)
@@ -510,7 +510,7 @@ static const struct regmap_config video_cc_sm8350_regmap_config = {
        .fast_io = true,
 };
 
-static struct qcom_cc_desc video_cc_sm8350_desc = {
+static const struct qcom_cc_desc video_cc_sm8350_desc = {
        .config = &video_cc_sm8350_regmap_config,
        .clks = video_cc_sm8350_clocks,
        .num_clks = ARRAY_SIZE(video_cc_sm8350_clocks),
index f26c7eccb62e7eb8dbd022e2f01fa496eb570b3f..2e11dcffb6646d47b298c27ef68635a465dd728e 100644 (file)
@@ -415,7 +415,7 @@ static const struct regmap_config video_cc_sm8450_regmap_config = {
        .fast_io = true,
 };
 
-static struct qcom_cc_desc video_cc_sm8450_desc = {
+static const struct qcom_cc_desc video_cc_sm8450_desc = {
        .config = &video_cc_sm8450_regmap_config,
        .clks = video_cc_sm8450_clocks,
        .num_clks = ARRAY_SIZE(video_cc_sm8450_clocks),
index 7c25a50cfa970dff55d701cb24bc3aa5924ca12d..fcfe0cade6d0a95e749aabbc2af1174e5a70f0db 100644 (file)
@@ -519,7 +519,7 @@ static const struct regmap_config video_cc_sm8550_regmap_config = {
        .fast_io = true,
 };
 
-static struct qcom_cc_desc video_cc_sm8550_desc = {
+static const struct qcom_cc_desc video_cc_sm8550_desc = {
        .config = &video_cc_sm8550_regmap_config,
        .clks = video_cc_sm8550_clocks,
        .num_clks = ARRAY_SIZE(video_cc_sm8550_clocks),