summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-14 19:25:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2022-02-14 19:25:04 +0000
commit8af49c917002c2248daee0d9977add5cd68d0d9b (patch)
treefe808fbcf2c417ae23abae75f0be3e7a8d84c618 /sys/dev
parent68d8a2da06c646cc88be7f237fb6e6ea567290f6 (diff)
acpi_indicator() can take the softc*, instead of void*
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpi/acpi_x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/acpi/acpi_x86.c b/sys/dev/acpi/acpi_x86.c
index c7040d822bb..8d844ff1ff6 100644
--- a/sys/dev/acpi/acpi_x86.c
+++ b/sys/dev/acpi/acpi_x86.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: acpi_x86.c,v 1.1 2022/02/09 23:54:34 deraadt Exp $ */
+/* $OpenBSD: acpi_x86.c,v 1.2 2022/02/14 19:25:03 deraadt Exp $ */
/*
* Copyright (c) 2005 Thorsten Lockert <tholo@sigmasoft.com>
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
@@ -115,7 +115,7 @@ gosleep(void *v)
struct acpi_softc *sc = v;
acpibtn_enable_psw(); /* enable _LID for wakeup */
- acpi_indicator(v, ACPI_SST_SLEEPING);
+ acpi_indicator(sc, ACPI_SST_SLEEPING);
/* 3rd suspend AML step: _GTS(tostate) */
aml_node_setval(sc, sc->sc_gts, sc->sc_state);