diff options
author | Simon Glass <sjg@chromium.org> | 2022-10-20 18:22:52 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-10-31 11:02:44 -0400 |
commit | 76c839fcb417feb6532959a13eaaceb0f2b2b861 (patch) | |
tree | 44d70d84b1b84948124e08bda4b156aa13b00608 /lib | |
parent | b190deb8955f1043817faf84a69dd63d5a53f959 (diff) | |
download | u-boot-76c839fcb417feb6532959a13eaaceb0f2b2b861.zip u-boot-76c839fcb417feb6532959a13eaaceb0f2b2b861.tar.gz u-boot-76c839fcb417feb6532959a13eaaceb0f2b2b861.tar.bz2 |
disk: Rename block functions
Use the uclass type as the first part of the function name, to be
consistent with the methods in other block drivers.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_disk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_disk.c b/lib/efi_loader/efi_disk.c index cef4e45..f11722d 100644 --- a/lib/efi_loader/efi_disk.c +++ b/lib/efi_loader/efi_disk.c @@ -123,9 +123,11 @@ static efi_status_t efi_disk_rw_blocks(struct efi_block_io *this, if (CONFIG_IS_ENABLED(PARTITIONS) && device_get_uclass_id(diskobj->header.dev) == UCLASS_PARTITION) { if (direction == EFI_DISK_READ) - n = dev_read(diskobj->header.dev, lba, blocks, buffer); + n = disk_blk_read(diskobj->header.dev, lba, blocks, + buffer); else - n = dev_write(diskobj->header.dev, lba, blocks, buffer); + n = disk_blk_write(diskobj->header.dev, lba, blocks, + buffer); } else { /* dev is a block device (UCLASS_BLK) */ struct blk_desc *desc; |