From e6907a3850b5b4c464e92748481c3c4a8668ff98 Mon Sep 17 00:00:00 2001 From: Russell King Date: Mon, 2 Jan 2017 17:52:18 +0000 Subject: 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 --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') 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. -- cgit