]> git.baikalelectronics.ru Git - kernel.git/commit
clk: imx: Rework all imx_clk_hw_composite wrappers
authorAbel Vesa <abel.vesa@nxp.com>
Mon, 13 Sep 2021 08:24:49 +0000 (11:24 +0300)
committerAbel Vesa <abel.vesa@nxp.com>
Thu, 30 Sep 2021 13:22:55 +0000 (16:22 +0300)
commit9f2224d000e35f3239f02c018537e5d581d1a5c3
tree90ab82e7dffdf62237c2a088b9fe8bbdbcd65492
parent2c15adf589ba4661185e2394594fb65a97239a30
clk: imx: Rework all imx_clk_hw_composite wrappers

Rather than having multiple different macros for each different type
of imx8m_clk_hw_composite, implement them in such a way so we can
take advantage the most of the already defined simpler types. Basically,
we end up having one low-level __imx8m_clk_hw_composite function, a
wrapper to simplify the parents related arguments called
_imx8m_clk_hw_composite and then all the types can use those for each
specific case.

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