Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/x86 Initialize sensor state before registering.
details: https://anonhg.NetBSD.org/src/rev/22c9bc3cf130
branches: trunk
changeset: 766313:22c9bc3cf130
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Mon Jun 20 17:07:21 2011 +0000
description:
Initialize sensor state before registering.
diffstat:
sys/arch/x86/x86/viac7temp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r b0f079104c9e -r 22c9bc3cf130 sys/arch/x86/x86/viac7temp.c
--- a/sys/arch/x86/x86/viac7temp.c Mon Jun 20 17:01:45 2011 +0000
+++ b/sys/arch/x86/x86/viac7temp.c Mon Jun 20 17:07:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: viac7temp.c,v 1.5 2011/02/24 15:42:17 jruoho Exp $ */
+/* $NetBSD: viac7temp.c,v 1.6 2011/06/20 17:07:21 pgoyette Exp $ */
/*-
* Copyright (c) 2009 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.5 2011/02/24 15:42:17 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: viac7temp.c,v 1.6 2011/06/20 17:07:21 pgoyette Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -97,6 +97,7 @@
sc->sc_sensor.units = ENVSYS_STEMP;
sc->sc_sensor.flags = ENVSYS_FMONLIMITS;
+ sc->sc_sensor.state = ENVSYS_SINVALID;
(void)strlcpy(sc->sc_sensor.desc, "temperature",
sizeof(sc->sc_sensor.desc));
Home |
Main Index |
Thread Index |
Old Index