]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: phy: export genphy_config_eee_advert
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 18 Feb 2019 20:26:58 +0000 (21:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Feb 2019 21:03:06 +0000 (13:03 -0800)
We want to use this function in phy-c45.c too, therefore export it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c
include/linux/phy.h

index 4bb3b6c2894e67aded2bbbc7960e2c2e665ae318..49fdd1ee798e4418f5145b00ad6573525eed0f82 100644 (file)
@@ -1575,7 +1575,7 @@ static int genphy_config_advert(struct phy_device *phydev)
  *   efficent ethernet modes. Returns 0 if the PHY's advertisement hasn't
  *   changed, and 1 if it has changed.
  */
-static int genphy_config_eee_advert(struct phy_device *phydev)
+int genphy_config_eee_advert(struct phy_device *phydev)
 {
        int err;
 
@@ -1588,6 +1588,7 @@ static int genphy_config_eee_advert(struct phy_device *phydev)
        /* If the call failed, we assume that EEE is not supported */
        return err < 0 ? 0 : err;
 }
+EXPORT_SYMBOL(genphy_config_eee_advert);
 
 /**
  * genphy_setup_forced - configures/forces speed/duplex from @phydev
index 3db507e68191fd50f8c50d27b7791e8cc4704b6b..761131de4971c377397975ccf9780e5008bc4b2b 100644 (file)
@@ -1077,6 +1077,7 @@ void phy_attached_info(struct phy_device *phydev);
 int genphy_config_init(struct phy_device *phydev);
 int genphy_setup_forced(struct phy_device *phydev);
 int genphy_restart_aneg(struct phy_device *phydev);
+int genphy_config_eee_advert(struct phy_device *phydev);
 int genphy_config_aneg(struct phy_device *phydev);
 int genphy_aneg_done(struct phy_device *phydev);
 int genphy_update_link(struct phy_device *phydev);