ACPI: replace casts by container_of()
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:56:23 +0000 (14:56 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:56:23 +0000 (14:56 +0100)
commite945fcf84321547fac36e0d6ad6916daff578fdc
treef2cd065f1ddea3363e91bc49216ea03507c8ae58
parent654c917d94d24587bb6b4a8d862baf04b25cbe33
ACPI: replace casts by container_of()

The latter is slightly more type-safe. Also add const where possible,
including without need to touch further code. Additionally replace an
adjacent unnecessary use of u16.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/acpi/boot.c
xen/drivers/acpi/tables.c