Skip to content

Commit d1e40bc

Browse files
xdarklightbebarino
authored andcommitted
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 <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: [email protected] Signed-off-by: Martin Blumenstingl <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 699470f commit d1e40bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/clk/clk-stm32f4.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -709,10 +709,10 @@ static unsigned long stm32f4_pll_div_recalc_rate(struct clk_hw *hw,
709709
return clk_divider_ops.recalc_rate(hw, parent_rate);
710710
}
711711

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)
714714
{
715-
return clk_divider_ops.round_rate(hw, rate, prate);
715+
return clk_divider_ops.determine_rate(hw, req);
716716
}
717717

718718
static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -738,7 +738,7 @@ static int stm32f4_pll_div_set_rate(struct clk_hw *hw, unsigned long rate,
738738

739739
static const struct clk_ops stm32f4_pll_div_ops = {
740740
.recalc_rate = stm32f4_pll_div_recalc_rate,
741-
.round_rate = stm32f4_pll_div_round_rate,
741+
.determine_rate = stm32f4_pll_div_determine_rate,
742742
.set_rate = stm32f4_pll_div_set_rate,
743743
};
744744

0 commit comments

Comments
 (0)