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

clk: imx: clk-gpr-mux: Simplify .determine_rate()

imx_clk_gpr_mux_determine_rate() is the same as __clk_mux_determine_rate(),
so use the latter to save some LoC.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Link: https://lore.kernel.org/r/ac8bd50c41b84f244bb0ec94e8aed25c513c9037.1688760152.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>

authored by

Christophe JAILLET and committed by
Abel Vesa
2deed4cd 07ba6d1a

+1 -7
+1 -7
drivers/clk/imx/clk-gpr-mux.c
··· 65 65 return regmap_update_bits(priv->regmap, priv->reg, priv->mask, val); 66 66 } 67 67 68 - static int imx_clk_gpr_mux_determine_rate(struct clk_hw *hw, 69 - struct clk_rate_request *req) 70 - { 71 - return clk_mux_determine_rate_flags(hw, req, 0); 72 - } 73 - 74 68 static const struct clk_ops imx_clk_gpr_mux_ops = { 75 69 .get_parent = imx_clk_gpr_mux_get_parent, 76 70 .set_parent = imx_clk_gpr_mux_set_parent, 77 - .determine_rate = imx_clk_gpr_mux_determine_rate, 71 + .determine_rate = __clk_mux_determine_rate, 78 72 }; 79 73 80 74 struct clk_hw *imx_clk_gpr_mux(const char *name, const char *compatible,