clk: qcom: mmcc-msm8974: use ARRAY_SIZE instead of specifying num_parents
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sun, 4 Dec 2022 12:45:03 +0000 (14:45 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Dec 2022 18:26:57 +0000 (12:26 -0600)
commit4e74e921ea0c576682ffd7981af1d4a73ceaca11
tree0d0a3e7c7c677d4bbd0f8cf4063e8b57949aa518
parentff81be97120b6bb79f1239a184bb0c851d7ed9a7
clk: qcom: mmcc-msm8974: 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: Neil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/20221204124508.1415713-7-dmitry.baryshkov@linaro.org
drivers/clk/qcom/mmcc-msm8974.c