From 69e61d46d2dcdcf84a3a7aed7cf74ac3b3b850fd Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Sat, 22 Mar 2025 00:21:16 +0100 Subject: acpi: new function acpi_update_checksum() Introduce a new function to update ACPI table headers. This allows to simplify the existing code. Signed-off-by: Heinrich Schuchardt Reviewed-by: Matthias Brugger Reviewed-by: Ilias Apalodimas --- include/acpi/acpi_table.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/acpi/acpi_table.h b/include/acpi/acpi_table.h index b8b1f1338c6..f8e5f552ab1 100644 --- a/include/acpi/acpi_table.h +++ b/include/acpi/acpi_table.h @@ -1274,6 +1274,13 @@ ulong write_acpi_tables(ulong start); */ struct acpi_table_header *acpi_find_table(const char *sig); +/** + * acpi_update_checksum() - update ACPI table checksum + * + * @header - header of an ACPI table + */ +void acpi_update_checksum(struct acpi_table_header *header); + #endif /* !__ACPI__*/ #include -- cgit v1.2.3