summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/acpi/acpigen.c2
-rw-r--r--src/include/acpi/acpigen.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/acpi/acpigen.c b/src/acpi/acpigen.c
index acef34d455..85b49b25b0 100644
--- a/src/acpi/acpigen.c
+++ b/src/acpi/acpigen.c
@@ -532,7 +532,7 @@ static void acpigen_write_field_offset(uint32_t offset, uint32_t current_bit_pos
acpigen_write_field_length(diff_bits);
}
-static void acpigen_write_field_name(const char *name, uint32_t size)
+void acpigen_write_field_name(const char *name, uint32_t size)
{
acpigen_emit_simple_namestring(name);
acpigen_write_field_length(size);
diff --git a/src/include/acpi/acpigen.h b/src/include/acpi/acpigen.h
index 4546cffd34..789dd47dcd 100644
--- a/src/include/acpi/acpigen.h
+++ b/src/include/acpi/acpigen.h
@@ -519,6 +519,7 @@ void acpigen_write_create_byte_field(uint8_t op, size_t byte_offset, const char
void acpigen_write_create_word_field(uint8_t op, size_t byte_offset, const char *name);
void acpigen_write_create_dword_field(uint8_t op, size_t byte_offset, const char *name);
void acpigen_write_create_qword_field(uint8_t op, size_t byte_offset, const char *name);
+void acpigen_write_field_name(const char *name, uint32_t size);
/*
* Generate ACPI AML code for _DSM method.
* This function takes as input uuid for the device, set of callbacks and