summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpiac.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/acpi/acpiac.c')
-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);