OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c083ed
)
ns83820: Use predefined autoneg constants
author
Denis Kirjanov
<dkirjanov@hera.kernel.org>
Fri, 3 Sep 2010 10:05:41 +0000
(10:05 +0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 7 Sep 2010 01:15:37 +0000
(18:15 -0700)
Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ns83820.c
patch
|
blob
|
history
diff --git
a/drivers/net/ns83820.c
b/drivers/net/ns83820.c
index
379af3e
..
3bbd0aa
100644
(file)
--- 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;
}