part: Add accessors for struct disk_partition type_uuid
authorSimon Glass <sjg@chromium.org>
Thu, 24 Aug 2023 19:55:32 +0000 (13:55 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 25 Aug 2023 21:55:18 +0000 (17:55 -0400)
commitbcd645428c340254a0f6e3b040fd36c3006fab6c
treec444be235be60afc52872daca36af79aa7abb5dc
parentc5f1d005f51783a5b34d6164ab66289eb1f4a45b
part: Add accessors for struct disk_partition type_uuid

This field is only present when a CONFIG is set. To avoid annoying #ifdefs
in the source code, add accessors. Update all code to use it.

Note that the accessor is optional. It can be omitted if it is known that
the option is enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part.c
disk/part_efi.c
include/part.h