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-mt8195: 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.

Tested-by: Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>
Signed-off-by: Brian Masney <bmasney@redhat.com>
Link: https://patch.msgid.link/20251212-phy-clk-round-rate-v3-4-beae3962f767@redhat.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Brian Masney and committed by
Vinod Koul
7a4ce5a9 be426724

+5 -5
+5 -5
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c
··· 418 418 return mtk_hdmi_pll_calc(hdmi_phy, hw, rate, parent_rate); 419 419 } 420 420 421 - static long mtk_hdmi_pll_round_rate(struct clk_hw *hw, unsigned long rate, 422 - unsigned long *parent_rate) 421 + static int mtk_hdmi_pll_determine_rate(struct clk_hw *hw, 422 + struct clk_rate_request *req) 423 423 { 424 424 struct mtk_hdmi_phy *hdmi_phy = to_mtk_hdmi_phy(hw); 425 425 426 - hdmi_phy->pll_rate = rate; 427 - return rate; 426 + hdmi_phy->pll_rate = req->rate; 427 + return 0; 428 428 } 429 429 430 430 static unsigned long mtk_hdmi_pll_recalc_rate(struct clk_hw *hw, ··· 439 439 .prepare = mtk_hdmi_pll_prepare, 440 440 .unprepare = mtk_hdmi_pll_unprepare, 441 441 .set_rate = mtk_hdmi_pll_set_rate, 442 - .round_rate = mtk_hdmi_pll_round_rate, 442 + .determine_rate = mtk_hdmi_pll_determine_rate, 443 443 .recalc_rate = mtk_hdmi_pll_recalc_rate, 444 444 }; 445 445