diff options
| author | Brian Masney <bmasney@redhat.com> | 2026-01-09 00:16:22 +0300 |
|---|---|---|
| committer | Brian Masney <bmasney@redhat.com> | 2026-01-22 18:48:25 +0300 |
| commit | d0b7c5bf6c5520c35fecff34da83d390405d3eaf (patch) | |
| tree | 581886cd9e49bb23f8c726c0940861bb91bbf344 | |
| parent | 1c8d7af61b37db526393a46224417f36420e97f8 (diff) | |
| download | linux-d0b7c5bf6c5520c35fecff34da83d390405d3eaf.tar.xz | |
clk: actions: owl-composite: convert from owl_divider_helper_round_rate() to divider_determine_rate()
owl_divider_helper_round_rate() is just a wrapper for
divider_round_rate(), which is deprecated. Let's migrate to
divider_determine_rate() instead so that this deprecated API can be
removed.
Acked-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Brian Masney <bmasney@redhat.com>
| -rw-r--r-- | drivers/clk/actions/owl-composite.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/clk/actions/owl-composite.c b/drivers/clk/actions/owl-composite.c index 00b74f8bc437..9540444307d6 100644 --- a/drivers/clk/actions/owl-composite.c +++ b/drivers/clk/actions/owl-composite.c @@ -57,15 +57,10 @@ static int owl_comp_div_determine_rate(struct clk_hw *hw, struct clk_rate_request *req) { struct owl_composite *comp = hw_to_owl_comp(hw); - long rate; - - rate = owl_divider_helper_round_rate(&comp->common, &comp->rate.div_hw, - req->rate, &req->best_parent_rate); - if (rate < 0) - return rate; + struct owl_divider_hw *div = &comp->rate.div_hw; - req->rate = rate; - return 0; + return divider_determine_rate(&comp->common.hw, req, div->table, + div->width, div->div_flags); } static unsigned long owl_comp_div_recalc_rate(struct clk_hw *hw, |
