]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: qcom: qdsp6: q6dsp-lpass-clocks: convert from round_rate() to determine_rate()
authorBrian Masney <bmasney@redhat.com>
Thu, 10 Jul 2025 15:51:10 +0000 (11:51 -0400)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jul 2025 12:38:53 +0000 (13:38 +0100)
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>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://patch.msgid.link/20250710-sound-clk-round-rate-v1-4-4a9c3bb6ff3a@redhat.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/q6dsp-lpass-clocks.c

index e758411603be5157e468e8c076620d7c18661bf3..03838582aeade389d9a2d90cf9f03fad835f0733 100644 (file)
@@ -69,17 +69,17 @@ static unsigned long clk_q6dsp_recalc_rate(struct clk_hw *hw,
        return clk->rate;
 }
 
-static long clk_q6dsp_round_rate(struct clk_hw *hw, unsigned long rate,
-                                unsigned long *parent_rate)
+static int clk_q6dsp_determine_rate(struct clk_hw *hw,
+                                   struct clk_rate_request *req)
 {
-       return rate;
+       return 0;
 }
 
 static const struct clk_ops clk_q6dsp_ops = {
        .prepare        = clk_q6dsp_prepare,
        .unprepare      = clk_q6dsp_unprepare,
        .set_rate       = clk_q6dsp_set_rate,
-       .round_rate     = clk_q6dsp_round_rate,
+       .determine_rate = clk_q6dsp_determine_rate,
        .recalc_rate    = clk_q6dsp_recalc_rate,
 };