mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08: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:
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user