Skip to content

Commit a8e4ab5

Browse files
krzkandersson
authored andcommitted
clk: qcom: videocc: 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 <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>
1 parent b9fe89a commit a8e4ab5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

drivers/clk/qcom/videocc-sa8775p.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ static const struct regmap_config video_cc_sa8775p_regmap_config = {
512512
.fast_io = true,
513513
};
514514

515-
static struct qcom_cc_desc video_cc_sa8775p_desc = {
515+
static const struct qcom_cc_desc video_cc_sa8775p_desc = {
516516
.config = &video_cc_sa8775p_regmap_config,
517517
.clks = video_cc_sa8775p_clocks,
518518
.num_clks = ARRAY_SIZE(video_cc_sa8775p_clocks),

drivers/clk/qcom/videocc-sm8350.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ static const struct regmap_config video_cc_sm8350_regmap_config = {
510510
.fast_io = true,
511511
};
512512

513-
static struct qcom_cc_desc video_cc_sm8350_desc = {
513+
static const struct qcom_cc_desc video_cc_sm8350_desc = {
514514
.config = &video_cc_sm8350_regmap_config,
515515
.clks = video_cc_sm8350_clocks,
516516
.num_clks = ARRAY_SIZE(video_cc_sm8350_clocks),

drivers/clk/qcom/videocc-sm8450.c

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

418-
static struct qcom_cc_desc video_cc_sm8450_desc = {
418+
static const struct qcom_cc_desc video_cc_sm8450_desc = {
419419
.config = &video_cc_sm8450_regmap_config,
420420
.clks = video_cc_sm8450_clocks,
421421
.num_clks = ARRAY_SIZE(video_cc_sm8450_clocks),

drivers/clk/qcom/videocc-sm8550.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static const struct regmap_config video_cc_sm8550_regmap_config = {
519519
.fast_io = true,
520520
};
521521

522-
static struct qcom_cc_desc video_cc_sm8550_desc = {
522+
static const struct qcom_cc_desc video_cc_sm8550_desc = {
523523
.config = &video_cc_sm8550_regmap_config,
524524
.clks = video_cc_sm8550_clocks,
525525
.num_clks = ARRAY_SIZE(video_cc_sm8550_clocks),

0 commit comments

Comments
 (0)