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

Miles Chen miles.chen at mediatek.com
Mon Jan 24 08:04:38 PST 2022


> 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 at chromium.org>
>
Reviewed-by: Miles Chen <miles.chen at mediatek.com>



More information about the Linux-mediatek mailing list