]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: phy: Unpublish phy_connect_dev()
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Tue, 30 May 2023 22:51:25 +0000 (00:51 +0200)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 10 Jun 2023 11:34:05 +0000 (13:34 +0200)
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>
drivers/net/phy/phy.c
include/phy.h

index 0eeb0cb3a852e7307a0ce51063b02bea3aec853d..ae21acb059b6c6549827e7d025ec32ee68ca0e6c 100644 (file)
@@ -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);
 }
 
-void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
-                    phy_interface_t interface)
+static void phy_connect_dev(struct phy_device *phydev, struct udevice *dev,
+                           phy_interface_t interface)
 {
        /* Soft Reset the PHY */
        phy_reset(phydev);
index 247223d92be70fcddfe2525c11df4a1c417822b7..f023a3c26852fd8fdf448a2c70e0013e68d52c6e 100644 (file)
@@ -223,15 +223,6 @@ static inline struct phy_device *fixed_phy_create(ofnode node)
 
 #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
  * Creates a PHY device for the PHY at the given address, if one doesn't exist