clk: qcom: gpucc-sdm660: Use ARRAY_SIZE for num_parents
authorMarijn Suijten <marijn.suijten@somainline.org>
Sun, 29 Aug 2021 20:48:20 +0000 (22:48 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 14 Sep 2021 21:09:48 +0000 (14:09 -0700)
commit7340264ee49d603c09b4bbcb6a4f0fc7e1f35a84
tree1b40e94ce457f053cc44c2888aec849ea06f6763
parent00ff818888fd436b687dbef457ea5a9135c60b15
clk: qcom: gpucc-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 it.

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