Commit a5d31e0f authored by Denis Kirjanov's avatar Denis Kirjanov Committed by David S. Miller

ns83820: Use predefined autoneg constants

Signed-off-by: default avatarDenis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3c083edc
...@@ -1298,7 +1298,8 @@ static int ns83820_get_settings(struct net_device *ndev, ...@@ -1298,7 +1298,8 @@ static int ns83820_get_settings(struct net_device *ndev,
cmd->speed = SPEED_10; cmd->speed = SPEED_10;
break; break;
} }
cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE) ? 1: 0; cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE)
? AUTONEG_ENABLE : AUTONEG_DISABLE;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment