From: Denis Kirjanov Date: Fri, 3 Sep 2010 10:05:41 +0000 (+0000) Subject: ns83820: Use predefined autoneg constants X-Git-Tag: MMI-PSA29.97-13-9~21994^2~566 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a5d31e0faf025ca8f64b85fc6938b702105725b7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ns83820: Use predefined autoneg constants Signed-off-by: Denis Kirjanov Signed-off-by: David S. Miller --- diff --git a/drivers/net/ns83820.c b/drivers/net/ns83820.c index 379af3e4edcc..3bbd0aab17e8 100644 --- a/drivers/net/ns83820.c +++ b/drivers/net/ns83820.c @@ -1298,7 +1298,8 @@ static int ns83820_get_settings(struct net_device *ndev, cmd->speed = SPEED_10; break; } - cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE) ? 1: 0; + cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE) + ? AUTONEG_ENABLE : AUTONEG_DISABLE; return 0; }