Skip to content

Commit 37f335d

Browse files
cristiccvinodkoul
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 6efbd0f commit 37f335d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/phy/rockchip/phy-rockchip-samsung-hdptx.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ struct rk_hdptx_phy {
401401

402402
/* clk provider */
403403
struct clk_hw hw;
404-
unsigned long rate;
404+
unsigned long hw_rate;
405405
bool restrict_rate_change;
406406

407407
atomic_t usage_count;
@@ -1030,7 +1030,7 @@ static int rk_hdptx_ropll_tmds_cmn_config(struct rk_hdptx_phy *hdptx,
10301030

10311031
ret = rk_hdptx_post_enable_pll(hdptx);
10321032
if (!ret)
1033-
hdptx->rate = rate;
1033+
hdptx->hw_rate = rate;
10341034

10351035
return ret;
10361036
}
@@ -1830,7 +1830,7 @@ static int rk_hdptx_phy_clk_prepare(struct clk_hw *hw)
18301830
{
18311831
struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw);
18321832

1833-
return rk_hdptx_phy_consumer_get(hdptx, hdptx->rate);
1833+
return rk_hdptx_phy_consumer_get(hdptx, hdptx->hw_rate);
18341834
}
18351835

18361836
static void rk_hdptx_phy_clk_unprepare(struct clk_hw *hw)
@@ -1845,7 +1845,7 @@ static unsigned long rk_hdptx_phy_clk_recalc_rate(struct clk_hw *hw,
18451845
{
18461846
struct rk_hdptx_phy *hdptx = to_rk_hdptx_phy(hw);
18471847

1848-
return hdptx->rate;
1848+
return hdptx->hw_rate;
18491849
}
18501850

18511851
static long rk_hdptx_phy_clk_round_rate(struct clk_hw *hw, unsigned long rate,

0 commit comments

Comments
 (0)