clk: imx: Rework all clk_hw_register_gate wrappers
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 13 Sep 2021 08:24:45 +0000 (11:24 +0300)
committerAbel Vesa <abel.vesa@nxp.com>
Fri, 17 Sep 2021 07:43:31 +0000 (10:43 +0300)
commitf121cca26cccfcc7ba4de53dda95f18be3f68840
treec12c20e94d5dac0472db43c205c7ad71534b2e8c
parent4e6b7e75386b6ad59826cc38542ba6a99c0eda56
clk: imx: Rework all clk_hw_register_gate wrappers

Instead of having multiple inline functions that were calling
clk_hw_register_gate, implement a generic low-level __imx_clk_hw_gate
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-4-git-send-email-abel.vesa@nxp.com
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/imx/clk.h