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>
This commit is contained in:
Simon Glass
2022-10-31 11:02:44 -04:00
committed by Tom Rini
parent b190deb895
commit 76c839fcb4
3 changed files with 52 additions and 20 deletions
+4 -2
View File
@@ -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;