Skip to content

Commit 1801cee

Browse files
krzkandersson
authored andcommitted
clk: qcom: dispcc: 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. Signed-off-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent 0f358f1 commit 1801cee

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

drivers/clk/qcom/dispcc-sc8280xp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3113,7 +3113,7 @@ static const struct regmap_config disp_cc_sc8280xp_regmap_config = {
31133113
.fast_io = true,
31143114
};
31153115

3116-
static struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
3116+
static const struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
31173117
.config = &disp_cc_sc8280xp_regmap_config,
31183118
.clks = disp0_cc_sc8280xp_clocks,
31193119
.num_clks = ARRAY_SIZE(disp0_cc_sc8280xp_clocks),
@@ -3123,7 +3123,7 @@ static struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
31233123
.num_gdscs = ARRAY_SIZE(disp0_cc_sc8280xp_gdscs),
31243124
};
31253125

3126-
static struct qcom_cc_desc disp1_cc_sc8280xp_desc = {
3126+
static const struct qcom_cc_desc disp1_cc_sc8280xp_desc = {
31273127
.config = &disp_cc_sc8280xp_regmap_config,
31283128
.clks = disp1_cc_sc8280xp_clocks,
31293129
.num_clks = ARRAY_SIZE(disp1_cc_sc8280xp_clocks),

drivers/clk/qcom/dispcc-sm4450.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ static const struct regmap_config disp_cc_sm4450_regmap_config = {
721721
.fast_io = true,
722722
};
723723

724-
static struct qcom_cc_desc disp_cc_sm4450_desc = {
724+
static const struct qcom_cc_desc disp_cc_sm4450_desc = {
725725
.config = &disp_cc_sm4450_regmap_config,
726726
.clks = disp_cc_sm4450_clocks,
727727
.num_clks = ARRAY_SIZE(disp_cc_sm4450_clocks),

drivers/clk/qcom/dispcc-sm8450.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,7 +1779,7 @@ static const struct regmap_config disp_cc_sm8450_regmap_config = {
17791779
.fast_io = true,
17801780
};
17811781

1782-
static struct qcom_cc_desc disp_cc_sm8450_desc = {
1782+
static const struct qcom_cc_desc disp_cc_sm8450_desc = {
17831783
.config = &disp_cc_sm8450_regmap_config,
17841784
.clks = disp_cc_sm8450_clocks,
17851785
.num_clks = ARRAY_SIZE(disp_cc_sm8450_clocks),

drivers/clk/qcom/dispcc-sm8550.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1745,7 +1745,7 @@ static const struct regmap_config disp_cc_sm8550_regmap_config = {
17451745
.fast_io = true,
17461746
};
17471747

1748-
static struct qcom_cc_desc disp_cc_sm8550_desc = {
1748+
static const struct qcom_cc_desc disp_cc_sm8550_desc = {
17491749
.config = &disp_cc_sm8550_regmap_config,
17501750
.clks = disp_cc_sm8550_clocks,
17511751
.num_clks = ARRAY_SIZE(disp_cc_sm8550_clocks),

drivers/clk/qcom/dispcc-sm8750.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1887,7 +1887,7 @@ static const struct regmap_config disp_cc_sm8750_regmap_config = {
18871887
.fast_io = true,
18881888
};
18891889

1890-
static struct qcom_cc_desc disp_cc_sm8750_desc = {
1890+
static const struct qcom_cc_desc disp_cc_sm8750_desc = {
18911891
.config = &disp_cc_sm8750_regmap_config,
18921892
.clks = disp_cc_sm8750_clocks,
18931893
.num_clks = ARRAY_SIZE(disp_cc_sm8750_clocks),

drivers/clk/qcom/dispcc0-sa8775p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ static const struct regmap_config disp_cc_0_sa8775p_regmap_config = {
14171417
.fast_io = true,
14181418
};
14191419

1420-
static struct qcom_cc_desc disp_cc_0_sa8775p_desc = {
1420+
static const struct qcom_cc_desc disp_cc_0_sa8775p_desc = {
14211421
.config = &disp_cc_0_sa8775p_regmap_config,
14221422
.clks = disp_cc_0_sa8775p_clocks,
14231423
.num_clks = ARRAY_SIZE(disp_cc_0_sa8775p_clocks),

drivers/clk/qcom/dispcc1-sa8775p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ static const struct regmap_config disp_cc_1_sa8775p_regmap_config = {
14171417
.fast_io = true,
14181418
};
14191419

1420-
static struct qcom_cc_desc disp_cc_1_sa8775p_desc = {
1420+
static const struct qcom_cc_desc disp_cc_1_sa8775p_desc = {
14211421
.config = &disp_cc_1_sa8775p_regmap_config,
14221422
.clks = disp_cc_1_sa8775p_clocks,
14231423
.num_clks = ARRAY_SIZE(disp_cc_1_sa8775p_clocks),

0 commit comments

Comments
 (0)