Re: [PATCH 1/5] clk: ingenic: Use to_clk_info() macro for all clocks

From: Stephen Boyd
Date: Tue Oct 13 2020 - 23:06:16 EST


Quoting Paul Cercueil (2020-09-02 18:50:44)
> 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@xxxxxxxxxxxxxxx>
> ---

Applied to clk-next