public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] phy: freescale: fsl-samsung-hdmi: Rename phy_clk_round_rate
@ 2025-05-04 20:40 Adam Ford
  2025-05-04 20:40 ` [PATCH 2/3] phy: freescale: fsl-samsung-hdmi: Refactor finding PHY settings Adam Ford
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adam Ford @ 2025-05-04 20:40 UTC (permalink / raw)
  To: linux-phy
  Cc: dominique.martinet, frieder.schrempf, u.kleine-koenig, aford,
	Adam Ford, Vinod Koul, Kishon Vijay Abraham I, linux-kernel

phy_clk_round_rate sounds like a generic helper function.  In
reality, it is unique to the phy-fsl-samsung-hdmi. Rename
phy_clk_round_rate to fsl_samsung_hdmi_phy_clk_round_rate.
No functional change intended.

Suggested-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
index 10fbe8dee116..40f33e5ac6f5 100644
--- a/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
+++ b/drivers/phy/freescale/phy-fsl-samsung-hdmi.c
@@ -531,8 +531,8 @@ static u32 fsl_samsung_hdmi_phy_get_closest_rate(unsigned long rate,
 	return frac_div_clk;
 }
 
-static long phy_clk_round_rate(struct clk_hw *hw,
-			       unsigned long rate, unsigned long *parent_rate)
+static long fsl_samsung_hdmi_phy_clk_round_rate(struct clk_hw *hw,
+						unsigned long rate, unsigned long *parent_rate)
 {
 	const struct phy_config *fract_div_phy;
 	u32 int_div_clk;
@@ -616,7 +616,7 @@ static int phy_clk_set_rate(struct clk_hw *hw,
 
 static const struct clk_ops phy_clk_ops = {
 	.recalc_rate = phy_clk_recalc_rate,
-	.round_rate = phy_clk_round_rate,
+	.round_rate = fsl_samsung_hdmi_phy_clk_round_rate,
 	.set_rate = phy_clk_set_rate,
 };
 
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-05-14 11:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-04 20:40 [PATCH 1/3] phy: freescale: fsl-samsung-hdmi: Rename phy_clk_round_rate Adam Ford
2025-05-04 20:40 ` [PATCH 2/3] phy: freescale: fsl-samsung-hdmi: Refactor finding PHY settings Adam Ford
2025-05-04 20:40 ` [PATCH 3/3] phy: freescale: fsl-samsung-hdmi: Improve LUT search for best clock Adam Ford
2025-05-14 11:37 ` [PATCH 1/3] phy: freescale: fsl-samsung-hdmi: Rename phy_clk_round_rate Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox