]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: Use ARRAY_SIZE in gpucc-sc7180 for parent clocks
authorDouglas Anderson <dianders@chromium.org>
Mon, 3 Feb 2020 18:31:43 +0000 (10:31 -0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Feb 2020 07:05:06 +0000 (23:05 -0800)
commitfc9364d77b76643e972a63c65b761a467afbf04a
tree138f67bba4a1747a7a10925084b946bcbb90237c
parentc57d57a9dbe171a682be4974c0130db3c9e50c48
clk: qcom: Use ARRAY_SIZE in gpucc-sc7180 for parent clocks

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
1977760c3f3d ("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.10.I3bf44e33f4dc7ecca10a50dbccb7dc082894fa59@changeid
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gpucc-sc7180.c