aboutsummaryrefslogtreecommitdiff
path: root/lib/acpi
diff options
context:
space:
mode:
authorSimon Glass2021-12-01 09:03:04 -0700
committerSimon Glass2022-01-25 11:44:36 -0700
commit2d7c7382969ff2a412acb409e76b2959dd715cc3 (patch)
tree937255d5f3c65de963c652d58ced6794843e3540 /lib/acpi
parent9d2adca8c3e8d195fa4be5acc8c6dfe14933e826 (diff)
acpi: Collect tables in the acpi_item list
At present this list is used to collect items within the DSDT and SSDT tables. It is useful for it to collect the whole tables as well, so there is a list of what was created and which write created each one. Refactor the code accordingly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/acpi')
-rw-r--r--lib/acpi/acpi_writer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/acpi/acpi_writer.c b/lib/acpi/acpi_writer.c
index 9b0aa23fd78..946f90e8e7b 100644
--- a/lib/acpi/acpi_writer.c
+++ b/lib/acpi/acpi_writer.c
@@ -40,6 +40,11 @@ int acpi_write_one(struct acpi_ctx *ctx, const struct acpi_writer *entry)
else
acpi_align(ctx);
+ /* Add the item to the internal list */
+ ret = acpi_add_other_item(ctx, entry, ctx->tab_start);
+ if (ret)
+ return log_msg_ret("add", ret);
+
return 0;
}