Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/acpi/wmi Add "pnp0c14" to the list of HIDs. Required...



details:   https://anonhg.NetBSD.org/src/rev/23dc308c9e14
branches:  trunk
changeset: 756696:23dc308c9e14
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu Jul 29 07:10:39 2010 +0000

description:
Add "pnp0c14" to the list of HIDs. Required for LG X110. As valid EISA IDs
should be all upper case, leave this as a onetime quirk specific to acpiwmi(4).

diffstat:

 sys/dev/acpi/wmi/wmi_acpi.c |  13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diffs (55 lines):

diff -r d2888453327a -r 23dc308c9e14 sys/dev/acpi/wmi/wmi_acpi.c
--- a/sys/dev/acpi/wmi/wmi_acpi.c       Wed Jul 28 23:30:21 2010 +0000
+++ b/sys/dev/acpi/wmi/wmi_acpi.c       Thu Jul 29 07:10:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wmi_acpi.c,v 1.5 2010/05/31 20:32:29 pgoyette Exp $    */
+/*     $NetBSD: wmi_acpi.c,v 1.6 2010/07/29 07:10:39 jruoho Exp $      */
 
 /*-
  * Copyright (c) 2009, 2010 Jukka Ruohonen <jruohonen%iki.fi@localhost>
@@ -27,7 +27,7 @@
  * SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.5 2010/05/31 20:32:29 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wmi_acpi.c,v 1.6 2010/07/29 07:10:39 jruoho Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -71,6 +71,7 @@
 
 const char * const acpi_wmi_ids[] = {
        "PNP0C14",
+       "pnp0c14",
        NULL
 };
 
@@ -322,7 +323,9 @@
        if (acpi_register_notify(sc->sc_node, acpi_wmi_event_handler) != true)
                return;
 
-       /* Enable possible expensive events. */
+       /*
+        * Enable possible expensive events.
+        */
        SIMPLEQ_FOREACH(wmi, &sc->wmi_head, wmi_link) {
 
                if ((wmi->guid.flags & ACPI_WMI_FLAG_EVENT) != 0 &&
@@ -336,7 +339,7 @@
                                continue;
                        }
 
-                       aprint_error_dev(sc->sc_dev, "failed to enable "
+                       aprint_debug_dev(sc->sc_dev, "failed to enable "
                            "expensive WExx: %s\n", AcpiFormatException(rv));
                }
        }
@@ -369,7 +372,7 @@
                        continue;
                }
 
-               aprint_error_dev(sc->sc_dev, "failed to disable "
+               aprint_debug_dev(sc->sc_dev, "failed to disable "
                    "expensive WExx: %s\n", AcpiFormatException(rv));
        }
 }



Home | Main Index | Thread Index | Old Index