Commit 1801cee7 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Bjorn Andersson
Browse files

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20250228-clk-qcom-const-v1-2-611ab80d45e4@linaro.org


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 0f358f1a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3113,7 +3113,7 @@ static const struct regmap_config disp_cc_sc8280xp_regmap_config = {
	.fast_io = true,
};

static struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
static const struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
	.config = &disp_cc_sc8280xp_regmap_config,
	.clks = disp0_cc_sc8280xp_clocks,
	.num_clks = ARRAY_SIZE(disp0_cc_sc8280xp_clocks),
@@ -3123,7 +3123,7 @@ static struct qcom_cc_desc disp0_cc_sc8280xp_desc = {
	.num_gdscs = ARRAY_SIZE(disp0_cc_sc8280xp_gdscs),
};

static struct qcom_cc_desc disp1_cc_sc8280xp_desc = {
static const struct qcom_cc_desc disp1_cc_sc8280xp_desc = {
	.config = &disp_cc_sc8280xp_regmap_config,
	.clks = disp1_cc_sc8280xp_clocks,
	.num_clks = ARRAY_SIZE(disp1_cc_sc8280xp_clocks),
+1 −1
Original line number Diff line number Diff line
@@ -721,7 +721,7 @@ static const struct regmap_config disp_cc_sm4450_regmap_config = {
	.fast_io = true,
};

static struct qcom_cc_desc disp_cc_sm4450_desc = {
static const struct qcom_cc_desc disp_cc_sm4450_desc = {
	.config = &disp_cc_sm4450_regmap_config,
	.clks = disp_cc_sm4450_clocks,
	.num_clks = ARRAY_SIZE(disp_cc_sm4450_clocks),
+1 −1
Original line number Diff line number Diff line
@@ -1779,7 +1779,7 @@ static const struct regmap_config disp_cc_sm8450_regmap_config = {
	.fast_io = true,
};

static struct qcom_cc_desc disp_cc_sm8450_desc = {
static const struct qcom_cc_desc disp_cc_sm8450_desc = {
	.config = &disp_cc_sm8450_regmap_config,
	.clks = disp_cc_sm8450_clocks,
	.num_clks = ARRAY_SIZE(disp_cc_sm8450_clocks),
+1 −1
Original line number Diff line number Diff line
@@ -1745,7 +1745,7 @@ static const struct regmap_config disp_cc_sm8550_regmap_config = {
	.fast_io = true,
};

static struct qcom_cc_desc disp_cc_sm8550_desc = {
static const struct qcom_cc_desc disp_cc_sm8550_desc = {
	.config = &disp_cc_sm8550_regmap_config,
	.clks = disp_cc_sm8550_clocks,
	.num_clks = ARRAY_SIZE(disp_cc_sm8550_clocks),
+1 −1
Original line number Diff line number Diff line
@@ -1887,7 +1887,7 @@ static const struct regmap_config disp_cc_sm8750_regmap_config = {
	.fast_io = true,
};

static struct qcom_cc_desc disp_cc_sm8750_desc = {
static const struct qcom_cc_desc disp_cc_sm8750_desc = {
	.config = &disp_cc_sm8750_regmap_config,
	.clks = disp_cc_sm8750_clocks,
	.num_clks = ARRAY_SIZE(disp_cc_sm8750_clocks),
Loading