]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0fb2c9dad2fa109c13d3198fd0d168838e7e6234
tree7a9cfaa29a95c774830a1e7c3c67136da75a700b
parentdd44bddf04c5fd83529b139fbfac0a5372c1a87d
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