u-boot/drivers/block
Simon Glass bb2c9a30c2 blk: Rewrite if_type to name functions
These are currently using a simple array lookup in one direction, and
relying on if_type being sequential.

With the move to uclass IDs this needs to change. Update the code to
prepare for the new way. This patch is intended to introduce no
functional change.

The returning of "(none)" from blk_get_if_type_name() is handling a case
that should not happen in either case.

Signed-off-by: Simon Glass <sjg@chromium.org>
2022-09-16 11:05:16 -04:00
..
blk-uclass.c blk: Rewrite if_type to name functions 2022-09-16 11:05:16 -04:00
blk_legacy.c blk: Drop unnecessary #ifdef in in blk_legacy 2022-09-16 11:05:00 -04:00
blkcache.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
efi-media-uclass.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00
efi_blk.c efi: Add a media/block driver for EFI block devices 2021-12-09 11:43:25 -08:00
ide.c ide: Use a flag for an ATAPI device 2022-09-16 11:05:16 -04:00
Kconfig blk: Hide the BLK and SPL_LEGACY_BLOCK options 2022-09-16 11:05:16 -04:00
Makefile blk: Rename HAVE_BLOCK_DEVICE 2022-09-16 11:05:16 -04:00
sandbox.c sandbox: Open host file for read-only access if needed 2022-03-18 19:24:24 -06:00
sb_efi_media.c efi: Add uclass for devices provided by UEFI firmware 2021-12-09 11:43:25 -08:00