summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-01 19:03:04 +0300
committerSimon Glass <sjg@chromium.org>2022-01-25 21:44:36 +0300
commit2d7c7382969ff2a412acb409e76b2959dd715cc3 (patch)
tree937255d5f3c65de963c652d58ced6794843e3540 /lib
parent9d2adca8c3e8d195fa4be5acc8c6dfe14933e826 (diff)
downloadu-boot-2d7c7382969ff2a412acb409e76b2959dd715cc3.tar.xz
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')
-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 9b0aa23fd7..946f90e8e7 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;
}