aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kirjanov <dkirjanov@hera.kernel.org>2010-09-03 06:05:41 -0400
committerDavid S. Miller <davem@davemloft.net>2010-09-06 21:15:37 -0400
commita5d31e0faf025ca8f64b85fc6938b702105725b7 (patch)
tree86b4de17f586c4fac158618f184c6b8581933cda
parent3c083edc6d0d53a050672b15e3594d07d81b42e5 (diff)
ns83820: Use predefined autoneg constants
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ns83820.c3
1 files changed, 2 insertions, 1 deletions
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,
1298 cmd->speed = SPEED_10; 1298 cmd->speed = SPEED_10;
1299 break; 1299 break;
1300 } 1300 }
1301 cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE) ? 1: 0; 1301 cmd->autoneg = (tbicr & TBICR_MR_AN_ENABLE)
1302 ? AUTONEG_ENABLE : AUTONEG_DISABLE;
1302 return 0; 1303 return 0;
1303} 1304}
1304 1305