]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Rework all clk_hw_register_mux wrappers
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 13 Sep 2021 08:24:47 +0000 (11:24 +0300)
committerAbel Vesa <abel.vesa@nxp.com>
Thu, 30 Sep 2021 13:22:07 +0000 (16:22 +0300)
commitd1317ab715d6ab2148d0ee51c85bb8b8979e3938
tree3826194404cdaa7fe6909501d458d4c682736d2a
parent047e795bf11f3a35c360b5e5dea50d43bec5f4d5
clk: imx: Rework all clk_hw_register_mux wrappers

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