summaryrefslogtreecommitdiffstats
path: root/sys/dev/acpi/acpiac.c
diff options
context:
space:
mode:
authormarco <marco@openbsd.org>2007-02-21 03:58:12 +0000
committermarco <marco@openbsd.org>2007-02-21 03:58:12 +0000
commit321d8e64baf50a53ffc58c9cee93f3af8598f292 (patch)
tree77ca7b6718bcd442739b996a1d24875c941d2a89 /sys/dev/acpi/acpiac.c
parent- Pass full buffer size to fgets. (diff)
downloadwireguard-openbsd-321d8e64baf50a53ffc58c9cee93f3af8598f292.tar.xz
wireguard-openbsd-321d8e64baf50a53ffc58c9cee93f3af8598f292.zip
Some Sony VAIOs use the wrong eventing type. Work around that by honering it.
Found by giovanni <qgiovanni @ gmail . com> ok jordan
Diffstat (limited to '')
-rw-r--r--sys/dev/acpi/acpiac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpiac.c b/sys/dev/acpi/acpiac.c
index c0f8333f0df..90f7ebb1f1d 100644
--- a/sys/dev/acpi/acpiac.c
+++ b/sys/dev/acpi/acpiac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpiac.c,v 1.16 2007/01/03 05:52:28 marco Exp $ */
+/* $OpenBSD: acpiac.c,v 1.17 2007/02/21 03:58:12 marco Exp $ */
/*
* Copyright (c) 2005 Marco Peereboom <marco@openbsd.org>
*
@@ -128,6 +128,12 @@ acpiac_notify(struct aml_node *node, int notify_type, void *arg)
sc->sc_devnode->parent->name);
switch (notify_type) {
+ case 0x81:
+ /*
+ * XXX some sony vaio's use the wrong notify type
+ * work around it by honoring it as a 0x80
+ */
+ /* FALLTHROUGH */
case 0x80:
acpiac_refresh(sc);
dnprintf(10, "A/C status: %d\n", sc->sc_ac_stat);