[PATCH] phy/rockchip: Remove the unused function hw_to_inno

Jiapeng Chong jiapeng.chong at linux.alibaba.com
Tue Oct 18 00:45:57 PDT 2022


The function hw_to_inno() is defined in the phy-rockchip-inno-dsidphy.c
file, but not called elsewhere, so delete this unused function.

drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c:203:36: warning: unused function 'hw_to_inno'.

Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2425
Reported-by: Abaci Robot <abaci at linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong at linux.alibaba.com>
---
 drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
index 2c5847faff63..587994353c58 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-dsidphy.c
@@ -281,11 +281,6 @@ struct inno_mipi_dphy_timing inno_mipi_dphy_timing_table_max_2_5ghz[] = {
 	{2500000000, 0x15, 0x54, 0x7f, 0x15, 0x6a},
 };
 
-static inline struct inno_dsidphy *hw_to_inno(struct clk_hw *hw)
-{
-	return container_of(hw, struct inno_dsidphy, pll.hw);
-}
-
 static void phy_update_bits(struct inno_dsidphy *inno,
 			    u8 first, u8 second, u8 mask, u8 val)
 {
-- 
2.20.1.7.g153144c




More information about the linux-phy mailing list