mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-21 20:34:38 +00:00
net: phy: Unpublish phy_connect_dev()
The phy_connect_dev() is legacy API, now that there are no users, make it internal to phy.c and unpublish it from headers. Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
This commit is contained in:
parent
83434e249f
commit
495fc04b6d
2 changed files with 2 additions and 11 deletions
|
@ -812,8 +812,8 @@ struct phy_device *phy_find_by_mask(struct mii_dev *bus, uint phy_mask)
|
||||||
return get_phy_device_by_mask(bus, phy_mask);
|
return get_phy_device_by_mask(bus, phy_mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
|
static void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
|
||||||
phy_interface_t interface)
|
phy_interface_t interface)
|
||||||
{
|
{
|
||||||
/* Soft Reset the PHY */
|
/* Soft Reset the PHY */
|
||||||
phy_reset(phydev);
|
phy_reset(phydev);
|
||||||
|
|
|
@ -223,15 +223,6 @@ static inline struct phy_device *fixed_phy_create(ofnode node)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* phy_connect_dev() - Associates the given pair of PHY and Ethernet devices
|
|
||||||
* @phydev: PHY device
|
|
||||||
* @dev: Ethernet device
|
|
||||||
* @interface: type of MAC-PHY interface
|
|
||||||
*/
|
|
||||||
void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
|
|
||||||
phy_interface_t interface);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* phy_connect() - Creates a PHY device for the Ethernet interface
|
* phy_connect() - Creates a PHY device for the Ethernet interface
|
||||||
* Creates a PHY device for the PHY at the given address, if one doesn't exist
|
* Creates a PHY device for the PHY at the given address, if one doesn't exist
|
||||||
|
|
Loading…
Add table
Reference in a new issue