diff options
author | Simon Glass | 2021-12-01 09:03:04 -0700 |
---|---|---|
committer | Simon Glass | 2022-01-25 11:44:36 -0700 |
commit | 2d7c7382969ff2a412acb409e76b2959dd715cc3 (patch) | |
tree | 937255d5f3c65de963c652d58ced6794843e3540 /lib/acpi | |
parent | 9d2adca8c3e8d195fa4be5acc8c6dfe14933e826 (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.c | 5 |
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; } |