aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-07-25 15:02:42 +0100
committerDavid S. Miller <davem@davemloft.net>2017-08-06 20:55:28 -0700
commitda4625ac2637e4e5249dc08a10f8dce7643603d2 (patch)
tree8f238e7068ae01b85fd79c545925ca26f9aef6a7 /include
parentnet: phy: allow settings table to support more than 32 link modes (diff)
downloadlinux-dev-da4625ac2637e4e5249dc08a10f8dce7643603d2.tar.xz
linux-dev-da4625ac2637e4e5249dc08a10f8dce7643603d2.zip
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> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index 0bb5b212ab42..e8264c78b75b 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -667,6 +667,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.