Commit ebed0849 authored by Brian Masney's avatar Brian Masney Committed by Vinod Koul
Browse files

phy: mediatek: phy-mtk-hdmi-mt2701: 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: default avatarBrian Masney <bmasney@redhat.com>
Link: https://patch.msgid.link/20251212-phy-clk-round-rate-v3-2-beae3962f767@redhat.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent efc389fa
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -90,10 +90,10 @@ static void mtk_hdmi_pll_unprepare(struct clk_hw *hw)
	usleep_range(80, 100);
}

static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate,
				    unsigned long *parent_rate)
static int mtk_hdmi_pll_determine_rate(struct clk_hw *hw,
				       struct clk_rate_request *req)
{
	return rate;
	return 0;
}

static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate,
@@ -170,7 +170,7 @@ static const struct clk_ops mtk_hdmi_phy_pll_ops = {
	.prepare = mtk_hdmi_pll_prepare,
	.unprepare = mtk_hdmi_pll_unprepare,
	.set_rate = mtk_hdmi_pll_set_rate,
	.round_rate = mtk_hdmi_pll_round_rate,
	.determine_rate = mtk_hdmi_pll_determine_rate,
	.recalc_rate = mtk_hdmi_pll_recalc_rate,
};