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/icplus.c | |
parent | e463d88c36d42211aa72ed76d32fb8bf37820ef1 (diff) | |
download | linux-32a641615a11f769a0c1092a47ce00ced9665e66.tar.gz linux-32a641615a11f769a0c1092a47ce00ced9665e66.tar.bz2 linux-32a641615a11f769a0c1092a47ce00ced9665e66.zip |
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/icplus.c')
-rw-r--r-- | drivers/net/phy/icplus.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/net/phy/icplus.c b/drivers/net/phy/icplus.c index 8644f039d922..0dbc445a5fa0 100644 --- a/drivers/net/phy/icplus.c +++ b/drivers/net/phy/icplus.c @@ -139,10 +139,7 @@ static int ip1001_config_init(struct phy_device *phydev) if (c < 0) return c; - if ((phydev->interface == PHY_INTERFACE_MODE_RGMII) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_RXID) || - (phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)) { + if (phy_interface_is_rgmii(phydev)) { c = phy_read(phydev, IP10XX_SPEC_CTRL_STATUS); if (c < 0) |