Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Initialize sensor states before registering
details: https://anonhg.NetBSD.org/src/rev/756f061eb3e1
branches: trunk
changeset: 766322:756f061eb3e1
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jun 20 18:12:06 2011 +0000
description:
Initialize sensor states before registering
diffstat:
sys/dev/ic/ug.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r d24a264e0ba6 -r 756f061eb3e1 sys/dev/ic/ug.c
--- a/sys/dev/ic/ug.c Mon Jun 20 18:03:41 2011 +0000
+++ b/sys/dev/ic/ug.c Mon Jun 20 18:12:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ug.c,v 1.11 2008/03/26 16:09:37 xtraeme Exp $ */
+/* $NetBSD: ug.c,v 1.12 2011/06/20 18:12:06 pgoyette Exp $ */
/*
* Copyright (c) 2007 Mihai Chelaru <kefren%netbsd.ro@localhost>
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ug.c,v 1.11 2008/03/26 16:09:37 xtraeme Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ug.c,v 1.12 2011/06/20 18:12:06 pgoyette Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -429,6 +429,10 @@
COPYDESCR(sc->sc_sensor[16].desc, "SYS Fan");
COPYDESCR(sc->sc_sensor[17].desc, "AUX Fan 1");
COPYDESCR(sc->sc_sensor[18].desc, "AUX Fan 2");
+
+ /* All sensors */
+ for (i = 0; i < UG_NUM_SENSORS; i++)
+ sc->sc_sensor[i].units = ENVSYS_SINVALID;
}
void
Home |
Main Index |
Thread Index |
Old Index