diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2019-02-18 21:26:58 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-21 22:03:06 +0100 |
commit | cd34499cacf3c34e2e094ff2a347b9378417970c (patch) | |
tree | 20501ce606a01fce515084254e787e9552995f9e /drivers | |
parent | Merge branch 'net-phy-improve-genphy_read_status' (diff) | |
download | linux-cd34499cacf3c34e2e094ff2a347b9378417970c.tar.xz linux-cd34499cacf3c34e2e094ff2a347b9378417970c.zip |
net: phy: export genphy_config_eee_advert
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/phy/phy_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 4bb3b6c2894e..49fdd1ee798e 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -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 |