]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
clk: actions: owl-composite: convert from round_rate() to determine_rate()
authorBrian Masney <bmasney@redhat.com>
Mon, 11 Aug 2025 15:19:03 +0000 (11:19 -0400)
committerBrian Masney <bmasney@redhat.com>
Mon, 8 Sep 2025 13:41:29 +0000 (09:41 -0400)
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>
drivers/clk/actions/owl-composite.c

index 48f177f6ce9cfacda80b4809b52a24f4fcd30871..00b74f8bc4375a8f42e9b54c7bf1affe91e1074a 100644 (file)
@@ -122,13 +122,13 @@ static int owl_comp_fact_set_rate(struct clk_hw *hw, unsigned long rate,
                                        rate, parent_rate);
 }
 
-static long owl_comp_fix_fact_round_rate(struct clk_hw *hw, unsigned long rate,
-                       unsigned long *parent_rate)
+static int owl_comp_fix_fact_determine_rate(struct clk_hw *hw,
+                                           struct clk_rate_request *req)
 {
        struct owl_composite *comp = hw_to_owl_comp(hw);
        struct clk_fixed_factor *fix_fact_hw = &comp->rate.fix_fact_hw;
 
-       return comp->fix_fact_ops->round_rate(&fix_fact_hw->hw, rate, parent_rate);
+       return comp->fix_fact_ops->determine_rate(&fix_fact_hw->hw, req);
 }
 
 static unsigned long owl_comp_fix_fact_recalc_rate(struct clk_hw *hw,
@@ -193,7 +193,7 @@ const struct clk_ops owl_comp_fix_fact_ops = {
        .is_enabled     = owl_comp_is_enabled,
 
        /* fix_fact_ops */
-       .round_rate     = owl_comp_fix_fact_round_rate,
+       .determine_rate = owl_comp_fix_fact_determine_rate,
        .recalc_rate    = owl_comp_fix_fact_recalc_rate,
        .set_rate       = owl_comp_fix_fact_set_rate,
 };