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

clk: stm32h7: Switch to clk_divider.determine_rate

.determine_rate is meant to replace .round_rate in CCF in the future.
Switch over to .determine_rate now that clk_divider_ops has gained
support for that.

Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Link: https://lore.kernel.org/r/20210702225145.2643303-6-martin.blumenstingl@googlemail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Martin Blumenstingl and committed by
Stephen Boyd
f9d6b483 d1e40bc9

+4 -4
+4 -4
drivers/clk/clk-stm32h7.c
··· 845 845 return clk_divider_ops.recalc_rate(hw, parent_rate); 846 846 } 847 847 848 - static long odf_divider_round_rate(struct clk_hw *hw, unsigned long rate, 849 - unsigned long *prate) 848 + static int odf_divider_determine_rate(struct clk_hw *hw, 849 + struct clk_rate_request *req) 850 850 { 851 - return clk_divider_ops.round_rate(hw, rate, prate); 851 + return clk_divider_ops.determine_rate(hw, req); 852 852 } 853 853 854 854 static int odf_divider_set_rate(struct clk_hw *hw, unsigned long rate, ··· 875 875 876 876 static const struct clk_ops odf_divider_ops = { 877 877 .recalc_rate = odf_divider_recalc_rate, 878 - .round_rate = odf_divider_round_rate, 878 + .determine_rate = odf_divider_determine_rate, 879 879 .set_rate = odf_divider_set_rate, 880 880 }; 881 881