aboutsummaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-08-24 13:55:31 -0600
committerTom Rini <trini@konsulko.com>2023-08-25 17:55:18 -0400
commitc5f1d005f51783a5b34d6164ab66289eb1f4a45b (patch)
treece2387e3ccb134d02bfd2c458546c420ca886c53 /fs
parentade2316da3cd76abe7649d34abb84f1370fb942d (diff)
downloadu-boot-c5f1d005f51783a5b34d6164ab66289eb1f4a45b.zip
u-boot-c5f1d005f51783a5b34d6164ab66289eb1f4a45b.tar.gz
u-boot-c5f1d005f51783a5b34d6164ab66289eb1f4a45b.tar.bz2
part: Add accessors for struct disk_partition 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>
Diffstat (limited to 'fs')
-rw-r--r--fs/fat/fat.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c
index d1476aa..8ff1fd0 100644
--- a/fs/fat/fat.c
+++ b/fs/fat/fat.c
@@ -110,9 +110,7 @@ int fat_register_device(struct blk_desc *dev_desc, int part_no)
info.name[0] = 0;
info.type[0] = 0;
info.bootable = 0;
-#if CONFIG_IS_ENABLED(PARTITION_UUIDS)
- info.uuid[0] = 0;
-#endif
+ disk_partition_clr_uuid(&info);
}
return fat_set_blk_dev(dev_desc, &info);