clk: ingenic: Use to_clk_info() macro for all clocks
authorPaul Cercueil <paul@crapouillou.net>
Thu, 3 Sep 2020 01:50:44 +0000 (03:50 +0200)
committerStephen Boyd <sboyd@kernel.org>
Wed, 14 Oct 2020 03:04:50 +0000 (20:04 -0700)
commit29c37341b54f7a500727799b94565fcc5dd8e6f8
tree7a9cfaa29a95c774830a1e7c3c67136da75a700b
parent9123e3a74ec7b934a4a099e98af6a61c2f80bbf5
clk: ingenic: Use to_clk_info() macro for all clocks

The to_clk_info() previously had a BUG_ON() to check that it was only
called for PLL clocks. Yet, all the other clocks were doing the exact
same thing the macro does, in-line.

Move the to_clk_info() macro to the top of the file, remove the
hardcoded BUG_ON(), and use it everywhere it makes sense.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://lore.kernel.org/r/20200903015048.3091523-1-paul@crapouillou.net
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/ingenic/cgu.c