projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abc8f93
)
clk: qcom: Use ARRAY_SIZE in videocc-sc7180 for parent clocks
author
Douglas Anderson
<dianders@chromium.org>
Mon, 3 Feb 2020 18:31:46 +0000
(10:31 -0800)
committer
Stephen Boyd
<sboyd@kernel.org>
Tue, 4 Feb 2020 07:05:06 +0000
(23:05 -0800)
It's nicer to use ARRAY_SIZE instead of hardcoding. Had we always
been doing this it would have prevented a previous bug. See commit
74c31ff9c84a
("clk: qcom: gpu_cc_gmu_clk_src has 5 parents, not 6").
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link:
https://lkml.kernel.org/r/20200203103049.v4.13.If37e4b1b5553ac9db5ea51e84a6eec286cdf209e@changeid
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/videocc-sc7180.c
patch
|
blob
|
history
diff --git
a/drivers/clk/qcom/videocc-sc7180.c
b/drivers/clk/qcom/videocc-sc7180.c
index 653fc4e6bb6fbd43ee0b1b1680e1f93925076426..c363c3cc544e2cd796d3678ad364b069b5368c81 100644
(file)
--- a/
drivers/clk/qcom/videocc-sc7180.c
+++ b/
drivers/clk/qcom/videocc-sc7180.c
@@
-76,7
+76,7
@@
static struct clk_rcg2 video_cc_venus_clk_src = {
.clkr.hw.init = &(struct clk_init_data){
.name = "video_cc_venus_clk_src",
.parent_data = video_cc_parent_data_1,
- .num_parents =
2
,
+ .num_parents =
ARRAY_SIZE(video_cc_parent_data_1)
,
.flags = CLK_SET_RATE_PARENT,
.ops = &clk_rcg2_shared_ops,
},