Skip to content

Commit fc62ed6

Browse files
masneybbroonie
authored andcommitted
ASoC: qcom: qdsp6: q6dsp-lpass-clocks: 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 <[email protected]> Reviewed-by: Konrad Dybcio <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent a37d9c8 commit fc62ed6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sound/soc/qcom/qdsp6/q6dsp-lpass-clocks.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ static unsigned long clk_q6dsp_recalc_rate(struct clk_hw *hw,
6969
return clk->rate;
7070
}
7171

72-
static long clk_q6dsp_round_rate(struct clk_hw *hw, unsigned long rate,
73-
unsigned long *parent_rate)
72+
static int clk_q6dsp_determine_rate(struct clk_hw *hw,
73+
struct clk_rate_request *req)
7474
{
75-
return rate;
75+
return 0;
7676
}
7777

7878
static const struct clk_ops clk_q6dsp_ops = {
7979
.prepare = clk_q6dsp_prepare,
8080
.unprepare = clk_q6dsp_unprepare,
8181
.set_rate = clk_q6dsp_set_rate,
82-
.round_rate = clk_q6dsp_round_rate,
82+
.determine_rate = clk_q6dsp_determine_rate,
8383
.recalc_rate = clk_q6dsp_recalc_rate,
8484
};
8585

0 commit comments

Comments
 (0)