summaryrefslogtreecommitdiff
path: root/src/acpi/acpigen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/acpi/acpigen.c')
-rw-r--r--src/acpi/acpigen.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index bf1b373a60..a4a74f65d7 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -1964,3 +1964,10 @@ void acpigen_write_ADR_soundwire_device(const struct soundwire_address *address)
(((uint64_t)address->part_id & 0xffff) << 8) |
(((uint64_t)address->class & 0xff)));
}
+
+void acpigen_notify(const char *namestr, int value)
+{
+ acpigen_emit_byte(NOTIFY_OP);
+ acpigen_emit_namestring(namestr);
+ acpigen_write_integer(value);
+}