Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+3 -7
+3 -7
drivers/clk/imx/clk.h
··· 185 185 #define imx_clk_hw_divider_flags(name, parent, reg, shift, width, flags) \ 186 186 __imx_clk_hw_divider(name, parent, reg, shift, width, flags) 187 187 188 + #define imx_clk_hw_pll14xx(name, parent_name, base, pll_clk) \ 189 + imx_dev_clk_hw_pll14xx(NULL, name, parent_name, base, pll_clk) 190 + 188 191 struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name, 189 192 const char *parent_name, void __iomem *base, 190 193 const struct imx_pll14xx_clk *pll_clk); ··· 295 292 if (IS_ERR_OR_NULL(hw)) 296 293 return ERR_CAST(hw); 297 294 return hw->clk; 298 - } 299 - 300 - static inline struct clk_hw *imx_clk_hw_pll14xx(const char *name, const char *parent_name, 301 - void __iomem *base, 302 - const struct imx_pll14xx_clk *pll_clk) 303 - { 304 - return imx_dev_clk_hw_pll14xx(NULL, name, parent_name, base, pll_clk); 305 295 } 306 296 307 297 static inline struct clk_hw *imx_clk_hw_fixed(const char *name, int rate)