]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Rework all clk_hw_register_gate2 wrappers
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 13 Sep 2021 08:24:46 +0000 (11:24 +0300)
committerAbel Vesa <abel.vesa@nxp.com>
Thu, 30 Sep 2021 08:48:24 +0000 (11:48 +0300)
commit7483a209af1caeb58fd62bf559feae25461cc776
tree9f2cf5ead2fb583771cfc9937b2dd0ea47c9c946
parent488f26221cb6a0b0a18d490526694e8615acbb7d
clk: imx: Rework all clk_hw_register_gate2 wrappers

Instead of having multiple inline functions that were calling
clk_hw_register_gate2, implement a generic low-level __imx_clk_hw_gate2
and implement the rest as macros that pass on as arguments whatever
is needed in each case.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/1631521490-17171-5-git-send-email-abel.vesa@nxp.com
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk.h