diff options
author | Abel Vesa <abel.vesa@nxp.com> | 2021-09-13 10:24:50 +0200 |
---|---|---|
committer | Abel Vesa <abel.vesa@nxp.com> | 2021-09-30 15:22:55 +0200 |
commit | 6b4a6b7f07883d96e10924b8e702cf62acdc9b90 (patch) | |
tree | 520ea07c49b92d249ba4367d5bf1ccca79dc1a40 /drivers/clk/imx/clk.h | |
parent | clk: imx: Rework all imx_clk_hw_composite wrappers (diff) | |
download | linux-6b4a6b7f07883d96e10924b8e702cf62acdc9b90.tar.xz linux-6b4a6b7f07883d96e10924b8e702cf62acdc9b90.zip |
clk: imx: Rework imx_clk_hw_pll14xx wrapper
It looks much cleaner to just have a macro compared to having
a function that passes NULL as dev to the lower-level
imx_dev_clk_hw_pll14xx.
Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Link: https://lore.kernel.org/r/1631521490-17171-9-git-send-email-abel.vesa@nxp.com
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/imx/clk.h')
-rw-r--r-- | drivers/clk/imx/clk.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 0507b5ff0cf4..e36d01411a4e 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -185,6 +185,9 @@ extern struct imx_pll14xx_clk imx_1443x_dram_pll; #define imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags) \ __imx_clk_hw_divider(name, parent, reg, shift, width, flags) +#define imx_clk_hw_pll14xx(name, parent_name, base, pll_clk) \ + imx_dev_clk_hw_pll14xx(NULL, name, parent_name, base, pll_clk) + struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, const char *parent_name, void __iomem *base, const struct imx_pll14xx_clk *pll_clk); @@ -294,13 +297,6 @@ static inline struct clk *to_clk(struct clk_hw *hw) return hw->clk; } -static inline struct clk_hw *imx_clk_hw_pll14xx(const char *name, const char *parent_name, - void __iomem *base, - const struct imx_pll14xx_clk *pll_clk) -{ - return imx_dev_clk_hw_pll14xx(NULL, name, parent_name, base, pll_clk); -} - static inline struct clk_hw *imx_clk_hw_fixed(const char *name, int rate) { return clk_hw_register_fixed_rate(NULL, name, NULL, 0, rate); |