summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-composite-8m.c
diff options
context:
space:
mode:
authorAbel Vesa <abel.vesa@nxp.com>2021-09-13 11:24:49 +0300
committerAbel Vesa <abel.vesa@nxp.com>2021-09-30 16:22:55 +0300
commita60fe746df94037151d101f0500f619cb6e1d1a0 (patch)
tree90ab82e7dffdf62237c2a088b9fe8bbdbcd65492 /drivers/clk/imx/clk-composite-8m.c
parentb170586afc9514676b8217ccf7087f78a8e2febb (diff)
downloadlinux-a60fe746df94037151d101f0500f619cb6e1d1a0.tar.gz
linux-a60fe746df94037151d101f0500f619cb6e1d1a0.tar.bz2
linux-a60fe746df94037151d101f0500f619cb6e1d1a0.zip
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>
Diffstat (limited to 'drivers/clk/imx/clk-composite-8m.c')
-rw-r--r--drivers/clk/imx/clk-composite-8m.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/clk/imx/clk-composite-8m.c b/drivers/clk/imx/clk-composite-8m.c
index 04e728538cef..2dfd6149e528 100644
--- a/drivers/clk/imx/clk-composite-8m.c
+++ b/drivers/clk/imx/clk-composite-8m.c
@@ -171,7 +171,7 @@ static const struct clk_ops imx8m_clk_composite_mux_ops = {
.determine_rate = imx8m_clk_composite_mux_determine_rate,
};
-struct clk_hw *imx8m_clk_hw_composite_flags(const char *name,
+struct clk_hw *__imx8m_clk_hw_composite(const char *name,
const char * const *parent_names,
int num_parents, void __iomem *reg,
u32 composite_flags,
@@ -246,4 +246,4 @@ fail:
kfree(mux);
return ERR_CAST(hw);
}
-EXPORT_SYMBOL_GPL(imx8m_clk_hw_composite_flags);
+EXPORT_SYMBOL_GPL(__imx8m_clk_hw_composite);