summaryrefslogtreecommitdiff
path: root/drivers/net/phy/phylib.h
diff options
context:
space:
mode:
authorHeiner Kallweit <hkallweit1@gmail.com>2025-03-03 21:18:46 +0100
committerJakub Kicinski <kuba@kernel.org>2025-03-05 19:13:53 -0800
commite7f984e925d23f8fd0469e344a8dc225e1a1b0ab (patch)
treec4103195eecd5451fcd98a3769d5c2b7f875df4a /drivers/net/phy/phylib.h
parente0327e9f859771a687884285c3ecc942eeae016a (diff)
net: phy: move PHY package related code from phy.h to phy_package.c
Move PHY package related inline functions from phy.h to phy_package.c. While doing so remove locked versions phy_package_read() and phy_package_write() which have no user. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Link: https://patch.msgid.link/a4518379-7a5d-45f3-831c-b7fde6512c65@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/phy/phylib.h')
-rw-r--r--drivers/net/phy/phylib.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/phy/phylib.h b/drivers/net/phy/phylib.h
index a42e1fc079cb..06c50d275b90 100644
--- a/drivers/net/phy/phylib.h
+++ b/drivers/net/phy/phylib.h
@@ -11,5 +11,11 @@ struct phy_device;
struct device_node *phy_package_get_node(struct phy_device *phydev);
void *phy_package_get_priv(struct phy_device *phydev);
+int __phy_package_read(struct phy_device *phydev, unsigned int addr_offset,
+ u32 regnum);
+int __phy_package_write(struct phy_device *phydev, unsigned int addr_offset,
+ u32 regnum, u16 val);
+bool phy_package_init_once(struct phy_device *phydev);
+bool phy_package_probe_once(struct phy_device *phydev);
#endif /* __PHYLIB_H */