summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2025-04-08 15:23:06 -0600
committerTom Rini <[email protected]>2025-04-08 16:23:27 -0600
commitfba8bfdd0bf2db1edd0383ba89a0c6037a6fe807 (patch)
treee6389f796e17959417c99a9ca196d373ffec4c94 /arch/arm
parenta1dd42950dee5e0da8fb5e053d8506eaa4000bf4 (diff)
parentfecc50b0517d362b4db173b08a769f7b975d8255 (diff)
Merge patch series "acpi: simplify updating ACPI table header checksum"
Heinrich Schuchardt <[email protected]> says: Introduce a new function to update ACPI table headers. This allows to simplify the existing code. Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-bcm283x/bcm2711_acpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-bcm283x/bcm2711_acpi.c b/arch/arm/mach-bcm283x/bcm2711_acpi.c
index 79b283353cf..58f8ee232b9 100644
--- a/arch/arm/mach-bcm283x/bcm2711_acpi.c
+++ b/arch/arm/mach-bcm283x/bcm2711_acpi.c
@@ -81,7 +81,7 @@ static int acpi_write_pptt(struct acpi_ctx *ctx, const struct acpi_writer *entry
}
header->length = ctx->current - ctx->tab_start;
- header->checksum = table_compute_checksum(header, header->length);
+ acpi_update_checksum(header);
acpi_inc(ctx, header->length);
acpi_add_table(ctx, header);
@@ -116,7 +116,7 @@ static int rpi_write_gtdt(struct acpi_ctx *ctx, const struct acpi_writer *entry)
gtdt->el2_flags = GTDT_FLAG_INT_ACTIVE_LOW;
gtdt->cnt_read_base = 0xffffffffffffffff;
- header->checksum = table_compute_checksum(header, header->length);
+ acpi_update_checksum(header);
acpi_add_table(ctx, gtdt);