Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi initialize fan sensor state to ENVSYS_SINVALID, ...



details:   https://anonhg.NetBSD.org/src/rev/5c5062281b21
branches:  trunk
changeset: 772917:5c5062281b21
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Jan 21 18:13:56 2012 +0000

description:
initialize fan sensor state to ENVSYS_SINVALID, should fix:

asus0 at acpi0 (ATKD, ASUS010-16843008)
sme_update_sensor_dictionary: can not update sensor state 0 unknown
asus0: couldn't register with envsys

diffstat:

 sys/dev/acpi/asus_acpi.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 001d33555aa5 -r 5c5062281b21 sys/dev/acpi/asus_acpi.c
--- a/sys/dev/acpi/asus_acpi.c  Sat Jan 21 17:12:56 2012 +0000
+++ b/sys/dev/acpi/asus_acpi.c  Sat Jan 21 18:13:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asus_acpi.c,v 1.22 2011/02/16 09:05:12 jruoho Exp $ */
+/* $NetBSD: asus_acpi.c,v 1.23 2012/01/21 18:13:56 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2007, 2008, 2009 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.22 2011/02/16 09:05:12 jruoho Exp $");
+__KERNEL_RCSID(0, "$NetBSD: asus_acpi.c,v 1.23 2012/01/21 18:13:56 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -153,6 +153,7 @@
 
        strcpy(sc->sc_sensor[ASUS_SENSOR_FAN].desc, "fan");
        sc->sc_sensor[ASUS_SENSOR_FAN].units = ENVSYS_SFANRPM;
+       sc->sc_sensor[ASUS_SENSOR_FAN].state = ENVSYS_SINVALID;
        sysmon_envsys_sensor_attach(sc->sc_sme,
            &sc->sc_sensor[ASUS_SENSOR_FAN]);
 



Home | Main Index | Thread Index | Old Index