clk: qcom: gcc-apq8084: use ARRAY_SIZE instead of specifying num_parents
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Wed, 11 Jan 2023 06:03:54 +0000 (08:03 +0200)
committerBjorn Andersson <andersson@kernel.org>
Thu, 19 Jan 2023 00:27:35 +0000 (18:27 -0600)
commit21c348768f44ca3f28ccd06f06bf3e16660384c5
treee48758773fb8163c50c8eb94e8247e9d561d277c
parent605f073812ecf40706de9c31ca3adaacb3829917
clk: qcom: gcc-apq8084: use ARRAY_SIZE instead of specifying num_parents

Use ARRAY_SIZE() instead of manually specifying num_parents. This makes
adding/removing entries to/from parent_data easy and errorproof.

Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20230111060402.1168726-5-dmitry.baryshkov@linaro.org
drivers/clk/qcom/gcc-apq8084.c