aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/acpica/acpi.c4
-rw-r--r--sys/dev/acpica/acpi_lid.c4
-rw-r--r--sys/dev/acpica/acpivar.h3
3 files changed, 7 insertions, 4 deletions
diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c
index 1e21d4572fac..b689e936916b 100644
--- a/sys/dev/acpica/acpi.c
+++ b/sys/dev/acpica/acpi.c
@@ -4142,13 +4142,13 @@ acpi_system_eventhandler_wakeup(struct acpi_softc *const sc,
/*
* ACPICA Event Handlers (FixedEvent, also called from button notify handler)
*/
-static void
+void
acpi_invoke_sleep_eventhandler(const enum power_stype *const stype)
{
EVENTHANDLER_INVOKE(acpi_sleep_event, *stype);
}
-static void
+void
acpi_invoke_wake_eventhandler(const enum power_stype *const stype)
{
EVENTHANDLER_INVOKE(acpi_wakeup_event, *stype);
diff --git a/sys/dev/acpica/acpi_lid.c b/sys/dev/acpica/acpi_lid.c
index fb8755d9f0fe..1d5249a19731 100644
--- a/sys/dev/acpica/acpi_lid.c
+++ b/sys/dev/acpica/acpi_lid.c
@@ -235,9 +235,9 @@ acpi_lid_notify_status_changed(void *arg)
sc->lid_status ? "opened" : "closed");
if (sc->lid_status == 0)
- EVENTHANDLER_INVOKE(acpi_sleep_event, acpi_sc->acpi_lid_switch_stype);
+ acpi_invoke_sleep_eventhandler(&acpi_sc->acpi_lid_switch_stype);
else
- EVENTHANDLER_INVOKE(acpi_wakeup_event, acpi_sc->acpi_lid_switch_stype);
+ acpi_invoke_wake_eventhandler(&acpi_sc->acpi_lid_switch_stype);
out:
ACPI_SERIAL_END(lid);
diff --git a/sys/dev/acpica/acpivar.h b/sys/dev/acpica/acpivar.h
index aa30e5fef26e..9facbaea595a 100644
--- a/sys/dev/acpica/acpivar.h
+++ b/sys/dev/acpica/acpivar.h
@@ -475,6 +475,9 @@ EVENTHANDLER_DECLARE(acpi_video_event, acpi_event_handler_t);
EVENTHANDLER_DECLARE(acpi_post_dev_suspend, acpi_event_handler_t);
EVENTHANDLER_DECLARE(acpi_pre_dev_resume, acpi_event_handler_t);
+void acpi_invoke_sleep_eventhandler(const enum power_stype *stype);
+void acpi_invoke_wake_eventhandler(const enum power_stype *stype);
+
/* Device power control. */
ACPI_STATUS acpi_pwr_wake_enable(ACPI_HANDLE consumer, int enable);
ACPI_STATUS acpi_pwr_switch_consumer(ACPI_HANDLE consumer, int state);