Skip to content

Commit b9fe89a

Browse files
krzkandersson
authored andcommitted
clk: qcom: gpucc: 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 1801cee commit b9fe89a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/clk/qcom/gpucc-sc8280xp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ static const struct regmap_config gpu_cc_sc8280xp_regmap_config = {
416416
.fast_io = true,
417417
};
418418

419-
static struct qcom_cc_desc gpu_cc_sc8280xp_desc = {
419+
static const struct qcom_cc_desc gpu_cc_sc8280xp_desc = {
420420
.config = &gpu_cc_sc8280xp_regmap_config,
421421
.clks = gpu_cc_sc8280xp_clocks,
422422
.num_clks = ARRAY_SIZE(gpu_cc_sc8280xp_clocks),

drivers/clk/qcom/gpucc-x1p42100.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static const struct regmap_config gpu_cc_x1p42100_regmap_config = {
523523
.fast_io = true,
524524
};
525525

526-
static struct qcom_cc_desc gpu_cc_x1p42100_desc = {
526+
static const struct qcom_cc_desc gpu_cc_x1p42100_desc = {
527527
.config = &gpu_cc_x1p42100_regmap_config,
528528
.clks = gpu_cc_x1p42100_clocks,
529529
.num_clks = ARRAY_SIZE(gpu_cc_x1p42100_clocks),

0 commit comments

Comments
 (0)