]> git.baikalelectronics.ru Git - kernel.git/commit
clk: qcom: gcc-msm8994: Use ARRAY_SIZE() for num_parents
authorKonrad Dybcio <konrad.dybcio@somainline.org>
Thu, 23 Sep 2021 16:26:42 +0000 (18:26 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 13 Oct 2021 22:20:23 +0000 (15:20 -0700)
commita7ffe21fb2d1f66bad97b649b067c43a7937894d
tree768e35046d750384be90b24f2668d61d05c89758
parente1601b3384a8ecd6faae7369013b92183d5ff3f8
clk: qcom: gcc-msm8994: Use ARRAY_SIZE() for num_parents

Don't rely on the programmer to enter the name of array elements, since the
computer can compute it with much less chance of making a mistake.

Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Link: https://lore.kernel.org/r/20210923162645.23257-9-konrad.dybcio@somainline.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/qcom/gcc-msm8994.c