]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: Use ARRAY_SIZE in videocc-sc7180 for parent clocks
authorDouglas Anderson <dianders@chromium.org>
Mon, 3 Feb 2020 18:31:46 +0000 (10:31 -0800)
committerStephen Boyd <sboyd@kernel.org>
Tue, 4 Feb 2020 07:05:06 +0000 (23:05 -0800)
commit5573e3346d1ec7111ad11e8b0df7bec7ee1f89a9
treef982defec13714f76003d343a7e76a735da82fa5
parenta9b6e0081e4660d8e6f9d205d05e179773ca0c89
clk: qcom: Use ARRAY_SIZE in videocc-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.13.If37e4b1b5553ac9db5ea51e84a6eec286cdf209e@changeid
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/videocc-sc7180.c