clk: qcom: gpucc-msm8998: Use ARRAY_SIZE for num_parents
authorMarijn Suijten <marijn.suijten@somainline.org>
Sat, 11 Sep 2021 12:13:36 +0000 (14:13 +0200)
committerStephen Boyd <sboyd@kernel.org>
Tue, 14 Sep 2021 21:40:32 +0000 (14:40 -0700)
commitce336a51deed2397917e9fce7c017004315bd5a5
treeb75a530050e57d0f2f9f3d7a90ec5480c970646d
parent9d67de94e1cf8dcd3107def6e1e8b49a9402fad7
clk: qcom: gpucc-msm8998: 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.

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@somainline.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Link: https://lore.kernel.org/r/20210911121340.261920-5-marijn.suijten@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gpucc-msm8998.c