Skip to content
Snippets Groups Projects
Commit 4b56e1e4 authored by Igor Mammedov's avatar Igor Mammedov Committed by MST
Browse files

acpi: build_fadt: use acpi_table_begin()/acpi_table_end() instead of build_header()


it replaces error-prone pointer arithmetic for build_header() API,
with 2 calls to start and finish table creation,
which hides offsets magic from API user.

Signed-off-by: Igor Mammedov's avatarIgor Mammedov <imammedo@redhat.com>
Reviewed-by: Eric Auger's avatarEric Auger <eric.auger@redhat.com>
Message-Id: <20210924122802.1455362-6-imammedo@redhat.com>
Reviewed-by: MST's avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: MST's avatarMichael S. Tsirkin <mst@redhat.com>
parent 7469f199
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment