diff options
| author | Brian Masney <bmasney@redhat.com> | 2025-08-11 11:19:04 -0400 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2025-09-08 09:41:29 -0400 |
| commit | 1b04e12a8bcc3315f1546f2b2a6b2ccca8c4696c (patch) | |
| tree | ab73ac73455cd0126a6f57af616de8370c4c40d6 /drivers/clk/actions | |
| parent | 151831541ae0f2a5d207a152a510b9ff5e8105cc (diff) | |
| download | linux-1b04e12a8bcc3315f1546f2b2a6b2ccca8c4696c.tar.gz linux-1b04e12a8bcc3315f1546f2b2a6b2ccca8c4696c.tar.bz2 linux-1b04e12a8bcc3315f1546f2b2a6b2ccca8c4696c.zip | |
clk: actions: owl-divider: 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.
Signed-off-by: Brian Masney <bmasney@redhat.com>
Diffstat (limited to 'drivers/clk/actions')
| -rw-r--r-- | drivers/clk/actions/owl-divider.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/clk/actions/owl-divider.c b/drivers/clk/actions/owl-divider.c index cddac00fe324..118f1393c678 100644 --- a/drivers/clk/actions/owl-divider.c +++ b/drivers/clk/actions/owl-divider.c @@ -23,13 +23,16 @@ long owl_divider_helper_round_rate(struct owl_clk_common *common, div_hw->div_flags); } -static long owl_divider_round_rate(struct clk_hw *hw, unsigned long rate, - unsigned long *parent_rate) +static int owl_divider_determine_rate(struct clk_hw *hw, + struct clk_rate_request *req) { struct owl_divider *div = hw_to_owl_divider(hw); - return owl_divider_helper_round_rate(&div->common, &div->div_hw, - rate, parent_rate); + req->rate = owl_divider_helper_round_rate(&div->common, &div->div_hw, + req->rate, + &req->best_parent_rate); + + return 0; } unsigned long owl_divider_helper_recalc_rate(struct owl_clk_common *common, @@ -89,6 +92,6 @@ static int owl_divider_set_rate(struct clk_hw *hw, unsigned long rate, const struct clk_ops owl_divider_ops = { .recalc_rate = owl_divider_recalc_rate, - .round_rate = owl_divider_round_rate, + .determine_rate = owl_divider_determine_rate, .set_rate = owl_divider_set_rate, }; |
