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: rockchip: samsung-hdptx: Rename ambiguous rk_hdptx_phy->rate

The main purpose of the ->rate member of struct rk_hdptx_phy is to
implement rk_hdptx_phy_clk_recalc_rate() by providing the actual rate
programmed in hardware. Hence the current naming is too generic and
rather ambiguous.

Improve clarity by renaming ->rate to ->hw_rate.

Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Link: https://lore.kernel.org/r/20250318-phy-sam-hdptx-bpc-v6-12-8cb1678e7663@collabora.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Cristian Ciocaltea and committed by
Vinod Koul
37f335db 6efbd0f4

+4 -4
+4 -4
drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c
··· 401 401 402 402 /* clk provider */ 403 403 struct clk_hw hw; 404 - unsigned long rate; 404 + unsigned long hw_rate; 405 405 bool restrict_rate_change; 406 406 407 407 atomic_t usage_count; ··· 1030 1030 1031 1031 ret = rk_hdptx_post_enable_pll(hdptx); 1032 1032 if (!ret) 1033 - hdptx->rate = rate; 1033 + hdptx->hw_rate = rate; 1034 1034 1035 1035 return ret; 1036 1036 } ··· 1830 1830 { 1831 1831 struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw); 1832 1832 1833 - return rk_hdptx_phy_consumer_get(hdptx, hdptx->rate); 1833 + return rk_hdptx_phy_consumer_get(hdptx, hdptx->hw_rate); 1834 1834 } 1835 1835 1836 1836 static void rk_hdptx_phy_clk_unprepare(struct clk_hw *hw) ··· 1845 1845 { 1846 1846 struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw); 1847 1847 1848 - return hdptx->rate; 1848 + return hdptx->hw_rate; 1849 1849 } 1850 1850 1851 1851 static long rk_hdptx_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate,