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)
commiteb2d505834f67375db0357c1ca677f73e7381f7e
tree768e35046d750384be90b24f2668d61d05c89758
parentc09b80238ceb2190d02779bb13ecbbd9a5605dc5
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