diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2015-05-26 12:19:59 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-27 00:27:35 -0400 |
commit | 32a641615a11f769a0c1092a47ce00ced9665e66 (patch) | |
tree | 06900275cad93a08dc9eb52198481df03aacbd01 /drivers/net/phy/phy.c | |
parent | e463d88c36d42211aa72ed76d32fb8bf37820ef1 (diff) | |
download | op-kernel-dev-32a641615a11f769a0c1092a47ce00ced9665e66.zip op-kernel-dev-32a641615a11f769a0c1092a47ce00ced9665e66.tar.gz |
net: phy: Utilize phy_interface_is_rgmii
Update all open-coded tests for all 4 PHY_INTERFACE_MODE_RGMII* values
to use the newly introduced helper: phy_interface_is_rgmii.
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/phy/phy.c')
-rw-r--r-- | drivers/net/phy/phy.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index 377d2db..b2197b5 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -1093,8 +1093,7 @@ int phy_init_eee(struct phy_device *phydev, bool clk_stop_enable) if ((phydev->duplex == DUPLEX_FULL) && ((phydev->interface == PHY_INTERFACE_MODE_MII) || (phydev->interface == PHY_INTERFACE_MODE_GMII) || - (phydev->interface >= PHY_INTERFACE_MODE_RGMII && - phydev->interface <= PHY_INTERFACE_MODE_RGMII_TXID) || + phy_interface_is_rgmii(phydev) || phy_is_internal(phydev))) { int eee_lp, eee_cap, eee_adv; u32 lp, cap, adv; |