diff options
| author | Oleksij Rempel <[email protected]> | 2023-02-11 07:41:08 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2023-02-13 11:12:31 +0000 |
| commit | cf9f6079696840093aa6ea3c0ee405a553afe2fb (patch) | |
| tree | 6d2d3bfced674d0de8d26087e46d088ead555494 /drivers/net/phy/phy.c | |
| parent | net: phy: micrel: add ksz9477_get_features() (diff) | |
| download | kernel-cf9f6079696840093aa6ea3c0ee405a553afe2fb.tar.gz kernel-cf9f6079696840093aa6ea3c0ee405a553afe2fb.zip | |
net: phy: export phy_check_valid() function
This function will be needed for genphy_c45_ethtool_get_eee() provided
by next patch.
Signed-off-by: Oleksij Rempel <[email protected]>
Reviewed-by: Alexander Duyck <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/phy/phy.c')
| -rw-r--r-- | drivers/net/phy/phy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 3378ca4f49b6..41cfb24c48c1 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -242,11 +242,11 @@ unsigned int phy_supported_speeds(struct phy_device *phy, * * Description: Returns true if there is a valid setting, false otherwise. */ -static inline bool phy_check_valid(int speed, int duplex, - unsigned long *features) +bool phy_check_valid(int speed, int duplex, unsigned long *features) { return !!phy_lookup_setting(speed, duplex, features, true); } +EXPORT_SYMBOL(phy_check_valid); /** * phy_sanitize_settings - make sure the PHY is set to supported speed and duplex |
