summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2024-04-18 06:11:13 +0300
committerSimon Glass <sjg@chromium.org>2024-07-03 09:36:32 +0300
commit07a6c69759eb4a99f044962c8c40c093af534351 (patch)
treec0ef56dc0dfb584e0172c3068d8d40274cdd6468 /test
parentd1fffbe3c808a9012a05b048560e17ce43f8ef9e (diff)
downloadu-boot-07a6c69759eb4a99f044962c8c40c093af534351.tar.xz
acpi: set creator_revision in acpi_fill_header
We should have a single place where we write the default value to the creator revision field. If we ever will have any table created by another tool, we can overwrite the value afterwards. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'test')
-rw-r--r--test/dm/acpi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/dm/acpi.c b/test/dm/acpi.c
index 4db2171a4b..7da381f1a5 100644
--- a/test/dm/acpi.c
+++ b/test/dm/acpi.c
@@ -236,7 +236,6 @@ static int dm_test_acpi_fill_header(struct unit_test_state *uts)
hdr.length = 0x11;
hdr.revision = 0x22;
hdr.checksum = 0x33;
- hdr.creator_revision = 0x44;
acpi_fill_header(&hdr, "ABCD");
ut_asserteq_mem("ABCD", hdr.signature, sizeof(hdr.signature));
@@ -248,7 +247,7 @@ static int dm_test_acpi_fill_header(struct unit_test_state *uts)
sizeof(hdr.oem_table_id));
ut_asserteq(OEM_REVISION, hdr.oem_revision);
ut_asserteq_mem(ASLC_ID, hdr.creator_id, sizeof(hdr.creator_id));
- ut_asserteq(0x44, hdr.creator_revision);
+ ut_asserteq(ASL_REVISION, hdr.creator_revision);
return 0;
}