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-07-07 16:12:14 +0100 |
commit | 0eb460ef9395eccc40dd2b488a38f52715ecbeab (patch) | |
tree | 4ea1d6587d04182eb22414b722656578c5ebe198 /include | |
parent | 618fe4391c980a0efd15f2ffdb2e0d1226c2cae6 (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')
-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 45728d0a0d0e..c715c76beaed 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -662,6 +662,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. |