Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/macppc/dev Initialize sensor state. (Missed the co...



details:   https://anonhg.NetBSD.org/src/rev/5d5c1ab58976
branches:  trunk
changeset: 767179:5d5c1ab58976
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Jul 10 14:41:34 2011 +0000

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

diffstat:

 sys/arch/macppc/dev/battery.c  |  5 +++--
 sys/arch/macppc/dev/smartbat.c |  5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diffs (52 lines):

diff -r e35aee5db44d -r 5d5c1ab58976 sys/arch/macppc/dev/battery.c
--- a/sys/arch/macppc/dev/battery.c     Sun Jul 10 13:42:49 2011 +0000
+++ b/sys/arch/macppc/dev/battery.c     Sun Jul 10 14:41:34 2011 +0000
@@ -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);
 
diff -r e35aee5db44d -r 5d5c1ab58976 sys/arch/macppc/dev/smartbat.c
--- a/sys/arch/macppc/dev/smartbat.c    Sun Jul 10 13:42:49 2011 +0000
+++ b/sys/arch/macppc/dev/smartbat.c    Sun Jul 10 14:41:34 2011 +0000
@@ -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);
 



Home | Main Index | Thread Index | Old Index