Re: [PATCH 02/31] clk: mediatek: gate: Consolidate gate type clk related code

From: Miles Chen
Date: Mon Jan 24 2022 - 11:04:48 EST


> Right now some bits of the gate type clk code are in clk-gate.[ch], but
> other bits are in clk-mtk.[ch]. This is different from the cpumux and
> mux type clks, for which all of the code are found in the same files.
>
> Move the functions that register multiple clks from a given list,
> mtk_clk_register_gates_with_dev() and mtk_clk_register_gates(), to
> clk-gate.[ch] to consolidate all the code for the gate type clks.
>
> This commit only moves code with minor whitespace fixups to correct
> the code style. Further improvements, such as internalizing various
> functions and structures will be done in later commits.
>
> Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>
>
Reviewed-by: Miles Chen <miles.chen@xxxxxxxxxxxx>