]> git.baikalelectronics.ru Git - kernel.git/commit
phy: Add helper function to check phy interface mode
authorIyappan Subramanian <isubramanian@apm.com>
Thu, 18 May 2017 22:13:43 +0000 (15:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 May 2017 23:41:43 +0000 (19:41 -0400)
commit87282ee645ff98ca93cfa2a5c7f31b07980485c4
tree7220dc4a817e1cf9fdf4f1ad77dfb725d2617c8d
parent41bd2174f6bde4401f625b2a04e1718d20486e29
phy: Add helper function to check phy interface mode

Added helper function that checks phy_mode is RGMII (all variants)
'bool phy_interface_mode_is_rgmii(phy_interface_t mode)'

Changed the following function, to use the above.
'bool phy_interface_is_rgmii(struct phy_device *phydev)'

Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
Suggested-by: Florian Fainelli <f.fainelli@gmail.com>
Suggested-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h