Skip to content

Commit f9d6b48

Browse files
xdarklightbebarino
authored andcommitted
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 <[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 d1e40bc commit f9d6b48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/clk/clk-stm32h7.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -845,10 +845,10 @@ static unsigned long odf_divider_recalc_rate(struct clk_hw *hw,
845845
return clk_divider_ops.recalc_rate(hw, parent_rate);
846846
}
847847

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)
850850
{
851-
return clk_divider_ops.round_rate(hw, rate, prate);
851+
return clk_divider_ops.determine_rate(hw, req);
852852
}
853853

854854
static int odf_divider_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -875,7 +875,7 @@ static int odf_divider_set_rate(struct clk_hw *hw, unsigned long rate,
875875

876876
static const struct clk_ops odf_divider_ops = {
877877
.recalc_rate = odf_divider_recalc_rate,
878-
.round_rate = odf_divider_round_rate,
878+
.determine_rate = odf_divider_determine_rate,
879879
.set_rate = odf_divider_set_rate,
880880
};
881881

0 commit comments

Comments
 (0)