diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-01-02 17:52:18 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2017-05-05 18:42:38 +0100 |
commit | e6907a3850b5b4c464e92748481c3c4a8668ff98 (patch) | |
tree | 7559f72955b6c0e72f98b6befd23e7f7053575ad /include/linux/phy.h | |
parent | 03ee86eb411bd7e702ef5ebcc1fd604f88f2e925 (diff) |
net: phy: split out PHY speed and duplex string generation
Other code would like to make use of this, so make the speed and duplex
string generation visible, and place it in a separate file.
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'include/linux/phy.h')
-rw-r--r-- | include/linux/phy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h index a77e0be9ba37..b610490381b3 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -654,6 +654,9 @@ struct phy_fixup { int (*run)(struct phy_device *phydev); }; +const char *phy_speed_to_str(int speed); +const char *phy_duplex_to_str(unsigned int duplex); + /** * phy_read_mmd - Convenience function for reading a register * from an MMD on a given PHY. |