From 152b4c217fea2daa5b2f4f99307ba7c2c16977da Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 14 Feb 2022 19:25:03 +0000 Subject: [PATCH] acpi_indicator() can take the softc*, instead of void* --- sys/dev/acpi/acpi_x86.c | 4 ++-- 1 file 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 * Copyright (c) 2005 Jordan Hargrave @@ -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); -- 2.20.1