Module Name:    src
Committed By:   pgoyette
Date:           Sun Jul 10 14:41:34 UTC 2011

Modified Files:
        src/sys/arch/macppc/dev: battery.c smartbat.c

Log Message:
Initialize sensor state.  (Missed the commit for this in my last
roto-till.)


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/macppc/dev/battery.c
cvs rdiff -u -r1.6 -r1.7 src/sys/arch/macppc/dev/smartbat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/macppc/dev/battery.c
diff -u src/sys/arch/macppc/dev/battery.c:1.13 src/sys/arch/macppc/dev/battery.c:1.14
--- src/sys/arch/macppc/dev/battery.c:1.13	Fri Jul  1 18:41:51 2011
+++ src/sys/arch/macppc/dev/battery.c	Sun Jul 10 14:41:34 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: battery.c,v 1.13 2011/07/01 18:41:51 dyoung Exp $ */
+/*	$NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: battery.c,v 1.13 2011/07/01 18:41:51 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: battery.c,v 1.14 2011/07/10 14:41:34 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -229,6 +229,7 @@
 
 #define INITDATA(index, unit, string)					\
 	sc->sc_sensor[index].units = unit;     				\
+	sc->sc_sensor[index].state = ENVSYS_SINVALID;			\
 	snprintf(sc->sc_sensor[index].desc,				\
 	    sizeof(sc->sc_sensor[index].desc), "%s", string);
 

Index: src/sys/arch/macppc/dev/smartbat.c
diff -u src/sys/arch/macppc/dev/smartbat.c:1.6 src/sys/arch/macppc/dev/smartbat.c:1.7
--- src/sys/arch/macppc/dev/smartbat.c:1.6	Fri Jul  1 18:41:52 2011
+++ src/sys/arch/macppc/dev/smartbat.c	Sun Jul 10 14:41:34 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: smartbat.c,v 1.6 2011/07/01 18:41:52 dyoung Exp $ */
+/*	$NetBSD: smartbat.c,v 1.7 2011/07/10 14:41:34 pgoyette Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smartbat.c,v 1.6 2011/07/01 18:41:52 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smartbat.c,v 1.7 2011/07/10 14:41:34 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -131,6 +131,7 @@
 
 #define INITDATA(index, unit, string)					\
 	sc->sc_sensor[index].units = unit;     				\
+	sc->sc_sensor[index].state = ENVSYS_SINVALID;			\
 	snprintf(sc->sc_sensor[index].desc,				\
 	    sizeof(sc->sc_sensor[index].desc), "%s", string);
 

Reply via email to