]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: qcom: gcc-msm8996: use ARRAY_SIZE instead of specifying num_parents
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Tue, 28 Dec 2021 04:54:11 +0000 (07:54 +0300)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Fri, 11 Feb 2022 00:33:31 +0000 (18:33 -0600)
commited96df3d461eeb2c40cb06ca5fd51644d0f4a2c0
tree2dc288897f7ecbb5ce8f05ab1b7041775efbd0b3
parent38d40dd3ed38e81dbab3c07d5edcb3ad740ca75a
clk: qcom: gcc-msm8996: 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.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20211228045415.20543-13-dmitry.baryshkov@linaro.org
drivers/clk/qcom/gcc-msm8996.c