diff options
author | Tom Rini <trini@konsulko.com> | 2025-04-08 15:23:06 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2025-04-08 16:23:27 -0600 |
commit | fba8bfdd0bf2db1edd0383ba89a0c6037a6fe807 (patch) | |
tree | e6389f796e17959417c99a9ca196d373ffec4c94 /lib/acpi/csrt.c | |
parent | a1dd42950dee5e0da8fb5e053d8506eaa4000bf4 (diff) | |
parent | fecc50b0517d362b4db173b08a769f7b975d8255 (diff) |
Merge patch series "acpi: simplify updating ACPI table header checksum"
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> says:
Introduce a new function to update ACPI table headers.
This allows to simplify the existing code.
Link: https://lore.kernel.org/r/20250321232121.251800-1-heinrich.schuchardt@canonical.com
Diffstat (limited to 'lib/acpi/csrt.c')
-rw-r--r-- | lib/acpi/csrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/acpi/csrt.c b/lib/acpi/csrt.c index 00927e53406..b863c644c07 100644 --- a/lib/acpi/csrt.c +++ b/lib/acpi/csrt.c @@ -40,7 +40,7 @@ int acpi_write_csrt(struct acpi_ctx *ctx, const struct acpi_writer *entry) /* (Re)calculate length and checksum */ header->length = (ulong)ctx->current - (ulong)csrt; - header->checksum = table_compute_checksum(csrt, header->length); + acpi_update_checksum(header); acpi_add_table(ctx, csrt); |