]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: gcc-sdm660: Use ARRAY_SIZE for num_parents
authorMarijn Suijten <marijn.suijten@somainline.org>
Sun, 29 Aug 2021 20:48:19 +0000 (22:48 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 14 Sep 2021 21:09:47 +0000 (14:09 -0700)
commitb9208415e9325b1f22b09bd950317aaf6f85918e
tree344c72ad9c03fa0e29936f5a734c3349371c7947
parentb901123b83fca756ffcd85ea50a6cd9637d66d0c
clk: qcom: gcc-sdm660: Use ARRAY_SIZE for num_parents

Where possible, use ARRAY_SIZE to determine the number of parents in
clk_parent_data instead of hardcoding a number that relies on an array
defined hundreds of lines above.

Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://lore.kernel.org/r/20210829204822.289829-2-marijn.suijten@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-sdm660.c