Skip to content
Commit 32d0f783 authored by Iyappan Subramanian's avatar Iyappan Subramanian Committed by David S. Miller
Browse files

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: default avatarIyappan Subramanian <isubramanian@apm.com>
Suggested-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Suggested-by: default avatarAndrew Lunn <andrew@lunn.ch>
Reviewed-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5d65a16a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment