diff options
author | LABBE Corentin <clabbe.montjoie@gmail.com> | 2017-05-24 10:16:45 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-05-25 20:08:34 +0300 |
commit | afbe17a3ad38e1c90bbb204b7f2accfbe9b9f2dc (patch) | |
tree | 814b183c31980ccde3b27382a429a2b79524365d | |
parent | 50cb16d4fd1263c72f5d384a275a86a72b546121 (diff) | |
download | linux-afbe17a3ad38e1c90bbb204b7f2accfbe9b9f2dc.tar.xz |
net-next: stmmac: use SPEED_xxx instead of raw value
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index cd398bafb5e9..e55382336868 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -802,12 +802,12 @@ static void stmmac_adjust_link(struct net_device *dev) if (phydev->speed != priv->speed) { new_state = true; switch (phydev->speed) { - case 1000: + case SPEED_1000: if (priv->plat->has_gmac || priv->plat->has_gmac4) ctrl &= ~priv->hw->link.port; break; - case 100: + case SPEED_100: if (priv->plat->has_gmac || priv->plat->has_gmac4) { ctrl |= priv->hw->link.port; @@ -816,7 +816,7 @@ static void stmmac_adjust_link(struct net_device *dev) ctrl &= ~priv->hw->link.port; } break; - case 10: + case SPEED_10: if (priv->plat->has_gmac || priv->plat->has_gmac4) { ctrl |= priv->hw->link.port; |