mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
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 <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>
This commit is contained in:
parent
a37d9c8aef
commit
fc62ed665e
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user