Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mii Use symbolic MII_MODEL_xxMARVELL_I210 instead of...
details: https://anonhg.NetBSD.org/src/rev/79e4fafee3cc
branches: trunk
changeset: 449232:79e4fafee3cc
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Wed Feb 27 18:21:04 2019 +0000
description:
Use symbolic MII_MODEL_xxMARVELL_I210 instead of a literal 0 in makphy_isi210().
diffstat:
sys/dev/mii/makphy.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 361be5d6872a -r 79e4fafee3cc sys/dev/mii/makphy.c
--- a/sys/dev/mii/makphy.c Wed Feb 27 17:01:57 2019 +0000
+++ b/sys/dev/mii/makphy.c Wed Feb 27 18:21:04 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: makphy.c,v 1.56 2019/02/25 04:26:22 msaitoh Exp $ */
+/* $NetBSD: makphy.c,v 1.57 2019/02/27 18:21:04 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -59,7 +59,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.56 2019/02/25 04:26:22 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: makphy.c,v 1.57 2019/02/27 18:21:04 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -128,7 +128,7 @@
/* I21[01]'s model number is 0 */
if ((MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_xxMARVELL)
- && (MII_MODEL(ma->mii_id2) == 0)
+ && (MII_MODEL(ma->mii_id2) == MII_MODEL_xxMARVELL_I210)
&& (device_is_a(parent, "wm")))
return true;
return false;
Home |
Main Index |
Thread Index |
Old Index