Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: Brian Masney <bmasney@redhat.com>
Link: https://patch.msgid.link/20251212-phy-clk-round-rate-v3-2-beae3962f767@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Brian Masney and committed by
Vinod Koul
ebed0849 efc389fa

+4 -4
+4 -4
drivers/phy/mediatek/phy-mtk-hdmi-mt2701.c
··· 90 90 usleep_range(80, 100); 91 91 } 92 92 93 - static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate, 94 - unsigned long *parent_rate) 93 + static int mtk_hdmi_pll_determine_rate(struct clk_hw *hw, 94 + struct clk_rate_request *req) 95 95 { 96 - return rate; 96 + return 0; 97 97 } 98 98 99 99 static int mtk_hdmi_pll_set_rate(struct clk_hw *hw, unsigned long rate, ··· 170 170 .prepare = mtk_hdmi_pll_prepare, 171 171 .unprepare = mtk_hdmi_pll_unprepare, 172 172 .set_rate = mtk_hdmi_pll_set_rate, 173 - .round_rate = mtk_hdmi_pll_round_rate, 173 + .determine_rate = mtk_hdmi_pll_determine_rate, 174 174 .recalc_rate = mtk_hdmi_pll_recalc_rate, 175 175 }; 176 176