summaryrefslogtreecommitdiffstats
path: root/include/linux/phy.h
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/linux/phy.h
parentc3ecbe757c973d59994d9496b829052ed688ae1e (diff)
downloadop-kernel-dev-da4625ac2637e4e5249dc08a10f8dce7643603d2.zip
op-kernel-dev-da4625ac2637e4e5249dc08a10f8dce7643603d2.tar.gz
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/linux/phy.h')
-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 0bb5b21..e8264c7 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.
OpenPOWER on IntegriCloud