u-boot/disk
Heinrich Schuchardt 8faeb1d722 part: eliminate part_get_info_by_name_type()
Since commit 56670d6fb8 ("disk: part: use common api to lookup part
driver") part_get_info_by_name_type() ignores the part_type parameter
used to restrict the partition table type.

omap_mmc_get_part_size() and part_get_info_by_name() are the only
consumers.

omap_mmc_get_part_size() calls with part_type = PART_TYPE_EFI because at
the time of implementation a speed up could be gained by passing the
partition table type. After 5 years experience without this restriction
it looks safe to keep it that way.

part_get_info_by_name() uses PART_TYPE_ALL.

Move the logic of part_get_info_by_name_type() to part_get_info_by_name()
and replace the function in omap_mmc_get_part_size().

Fixes: 56670d6fb8 ("disk: part: use common api to lookup part driver")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2023-07-25 12:44:46 -04:00
..
disk-uclass.c Revert "disk: Use a helper function to reduce duplication" 2023-04-03 10:43:37 -04:00
Kconfig disk: Use BOOT_DEFAULTS instead of DISTRO_DEFAULTS 2023-07-17 15:38:11 -04:00
Makefile blk: Rename HAVE_BLOCK_DEVICE 2022-09-16 11:05:16 -04:00
part.c part: eliminate part_get_info_by_name_type() 2023-07-25 12:44:46 -04:00
part_amiga.c disk: Use Makefile to omit partition drivers 2022-09-16 11:05:00 -04:00
part_amiga.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
part_dos.c Correct SPL use of CMD_MBR 2023-02-09 16:32:25 -05:00
part_dos.h disk: dos: add code for creating MBR partition layout 2021-01-15 15:33:09 -05:00
part_efi.c Correct SPL use of PARTITION_TYPE_GUID 2023-02-10 07:41:39 -05:00
part_iso.c disk: Use Makefile to omit partition drivers 2022-09-16 11:05:00 -04:00
part_iso.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
part_mac.c disk: Use Makefile to omit partition drivers 2022-09-16 11:05:00 -04:00
part_mac.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00