efistub/smbios: Simplify SMBIOS enumeration API
authorArd Biesheuvel <ardb@kernel.org>
Mon, 1 Jul 2024 16:29:59 +0000 (18:29 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Mon, 1 Jul 2024 22:42:04 +0000 (00:42 +0200)
commit0dad9ee3c13930fe8122f2efc936fcd1c277a00d
treeef5363566fa196b9d33e68743cee7b706e5e53ab
parent37aee82c213d352dccb850dc4228dda2e7e591b1
efistub/smbios: Simplify SMBIOS enumeration API

Update the efi_get_smbios_string() macro to take a pointer to the entire
record struct rather than the header. This removes the need to pass the
type explicitly, as it can be inferred from the typed pointer. Also,
drop 'type' from the prototype of __efi_get_smbios_string(), as it is
never referenced.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/libstub/arm64.c
drivers/firmware/efi/libstub/efistub.h
drivers/firmware/efi/libstub/smbios.c