diff options
author | Denis Kirjanov <dkirjanov@hera.kernel.org> | 2010-09-03 12:05:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-07 03:15:37 +0200 |
commit | a5d31e0faf025ca8f64b85fc6938b702105725b7 (patch) | |
tree | 86b4de17f586c4fac158618f184c6b8581933cda /drivers/net/ns83820.c | |
parent | ns83820: Add copper device settings (diff) | |
download | linux-a5d31e0faf025ca8f64b85fc6938b702105725b7.tar.xz linux-a5d31e0faf025ca8f64b85fc6938b702105725b7.zip |
ns83820: Use predefined autoneg constants
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ns83820.c')
-rw-r--r-- | drivers/net/ns83820.c | 3 |
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, 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; } |