Skip to content

Commit 62a8881

Browse files
masneybbebarino
authored andcommitted
clk: imx: busy: convert from round_rate() to determine_rate()
The round_rate() clk ops is deprecated, so migrate this driver from round_rate() to determine_rate() using the Coccinelle semantic patch on the cover letter of this series. The change to call busy->div_ops->determine_rate() instead of busy->div_ops->round_rate() was done by hand. Signed-off-by: Brian Masney <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Peng Fan <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 167483d commit 62a8881

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/clk/imx/clk-busy.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ static unsigned long clk_busy_divider_recalc_rate(struct clk_hw *hw,
4646
return busy->div_ops->recalc_rate(&busy->div.hw, parent_rate);
4747
}
4848

49-
static long clk_busy_divider_round_rate(struct clk_hw *hw, unsigned long rate,
50-
unsigned long *prate)
49+
static int clk_busy_divider_determine_rate(struct clk_hw *hw,
50+
struct clk_rate_request *req)
5151
{
5252
struct clk_busy_divider *busy = to_clk_busy_divider(hw);
5353

54-
return busy->div_ops->round_rate(&busy->div.hw, rate, prate);
54+
return busy->div_ops->determine_rate(&busy->div.hw, req);
5555
}
5656

5757
static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -69,7 +69,7 @@ static int clk_busy_divider_set_rate(struct clk_hw *hw, unsigned long rate,
6969

7070
static const struct clk_ops clk_busy_divider_ops = {
7171
.recalc_rate = clk_busy_divider_recalc_rate,
72-
.round_rate = clk_busy_divider_round_rate,
72+
.determine_rate = clk_busy_divider_determine_rate,
7373
.set_rate = clk_busy_divider_set_rate,
7474
};
7575

0 commit comments

Comments
 (0)