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

clk: stm32f4: 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-5-martin.blumenstingl@googlemail.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Martin Blumenstingl and committed by
Stephen Boyd
d1e40bc9 699470f3

+4 -4
+4 -4
drivers/clk/clk-stm32f4.c
··· 709 709 return clk_divider_ops.recalc_rate(hw, parent_rate); 710 710 } 711 711 712 - static long stm32f4_pll_div_round_rate(struct clk_hw *hw, unsigned long rate, 713 - unsigned long *prate) 712 + static int stm32f4_pll_div_determine_rate(struct clk_hw *hw, 713 + struct clk_rate_request *req) 714 714 { 715 - return clk_divider_ops.round_rate(hw, rate, prate); 715 + return clk_divider_ops.determine_rate(hw, req); 716 716 } 717 717 718 718 static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate, ··· 738 738 739 739 static const struct clk_ops stm32f4_pll_div_ops = { 740 740 .recalc_rate = stm32f4_pll_div_recalc_rate, 741 - .round_rate = stm32f4_pll_div_round_rate, 741 + .determine_rate = stm32f4_pll_div_determine_rate, 742 742 .set_rate = stm32f4_pll_div_set_rate, 743 743 }; 744 744