clk: renesas: rzg2l: Move the DEF_MUX array size calc into the macro
authorPhil Edworthy <phil.edworthy@renesas.com>
Tue, 3 May 2022 11:55:50 +0000 (12:55 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 5 May 2022 10:12:32 +0000 (12:12 +0200)
commitceb3bfab2da49f804ec629a20f731611b9ece207
tree808fce506c91f1883311d4e5eecde7079955a9ee
parent4a526957e6368597dea08175a67f0e15569f3958
clk: renesas: rzg2l: Move the DEF_MUX array size calc into the macro

We only ever use ARRAY_SIZE() to populate the number of parents, so
move this into the macro to always detect it automatically. This
also makes the tables of clocks a little simpler.
Similarly for the DEF_SD_MUX macro.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
Link: https://lore.kernel.org/r/20220503115557.53370-6-phil.edworthy@renesas.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/clk/renesas/r9a07g043-cpg.c
drivers/clk/renesas/r9a07g044-cpg.c
drivers/clk/renesas/rzg2l-cpg.h