All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch net-next-2.6] de2104x: use speed defines instead of number
@ 2011-06-01 14:14 Jiri Pirko
  2011-06-01 15:46 ` Ben Hutchings
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Pirko @ 2011-06-01 14:14 UTC (permalink / raw)
  To: netdev; +Cc: davem

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
---
 drivers/net/tulip/de2104x.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/tulip/de2104x.c b/drivers/net/tulip/de2104x.c
index e2f6923..1cc426d 100644
--- a/drivers/net/tulip/de2104x.c
+++ b/drivers/net/tulip/de2104x.c
@@ -1507,7 +1507,7 @@ static int __de_get_settings(struct de_private *de, struct ethtool_cmd *ecmd)
 		break;
 	}
 
-	ethtool_cmd_speed_set(ecmd, 10);
+	ethtool_cmd_speed_set(ecmd, SPEED_10);
 
 	if (dr32(MacMode) & FullDuplex)
 		ecmd->duplex = DUPLEX_FULL;
@@ -1529,7 +1529,7 @@ static int __de_set_settings(struct de_private *de, struct ethtool_cmd *ecmd)
 	u32 new_media;
 	unsigned int media_lock;
 
-	if (ethtool_cmd_speed(ecmd) != 10)
+	if (ethtool_cmd_speed(ecmd) != SPEED_10)
 		return -EINVAL;
 	if (ecmd->duplex != DUPLEX_HALF && ecmd->duplex != DUPLEX_FULL)
 		return -EINVAL;
-- 
1.7.4.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-01 17:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-01 14:14 [patch net-next-2.6] de2104x: use speed defines instead of number Jiri Pirko
2011-06-01 15:46 ` Ben Hutchings
2011-06-01 16:19   ` Jiri Pirko
2011-06-01 17:26     ` Ben Hutchings

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.