Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi Revert the previous commit as it was wrong/redu...



details:   https://anonhg.NetBSD.org/src/rev/d3e39e32eefc
branches:  trunk
changeset: 766386:d3e39e32eefc
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Tue Jun 21 09:49:05 2011 +0000

description:
Revert the previous commit as it was wrong/redundant.

diffstat:

 sys/dev/acpi/acpi_fan.c  |  5 ++---
 sys/dev/acpi/acpi_pmtr.c |  6 ++----
 2 files changed, 4 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r 67829c507212 -r d3e39e32eefc sys/dev/acpi/acpi_fan.c
--- a/sys/dev/acpi/acpi_fan.c   Tue Jun 21 09:37:41 2011 +0000
+++ b/sys/dev/acpi/acpi_fan.c   Tue Jun 21 09:49:05 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_fan.c,v 1.5 2011/06/20 17:21:50 pgoyette Exp $ */
+/*     $NetBSD: acpi_fan.c,v 1.6 2011/06/21 09:49:05 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_fan.c,v 1.5 2011/06/20 17:21:50 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_fan.c,v 1.6 2011/06/21 09:49:05 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/module.h>
@@ -172,7 +172,6 @@
 
        acpifan_sensor_state(self);
        sc->sc_sensor.units = ENVSYS_INDICATOR;
-       sc->sc_sensor.state = ENVSYS_SINVALID;
 
        (void)strlcpy(sc->sc_sensor.desc, "state", sizeof(sc->sc_sensor.desc));
 
diff -r 67829c507212 -r d3e39e32eefc sys/dev/acpi/acpi_pmtr.c
--- a/sys/dev/acpi/acpi_pmtr.c  Tue Jun 21 09:37:41 2011 +0000
+++ b/sys/dev/acpi/acpi_pmtr.c  Tue Jun 21 09:49:05 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: acpi_pmtr.c,v 1.6 2011/06/21 03:37:21 jruoho Exp $ */
+/*     $NetBSD: acpi_pmtr.c,v 1.7 2011/06/21 09:49:05 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi_pmtr.c,v 1.6 2011/06/21 03:37:21 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi_pmtr.c,v 1.7 2011/06/21 09:49:05 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/module.h>
@@ -338,8 +338,6 @@
        sc->sc_sensor_o.units = ENVSYS_SWATTS;
        sc->sc_sensor_i.value_cur = val * 1000;
        sc->sc_sensor_o.value_cur = val * 1000;
-       sc->sc_sensor_i.state = ENVSYS_SINVALID;
-       sc->sc_sensor_o.state = ENVSYS_SINVALID;
 
        acpipmtr_sensor_type(self);
 



Home | Main Index | Thread Index | Old Index