fs: Rename fs_read() to fs_legacy_read()

This existing function does not have any context associated with it.
Rename it so that fs_read() can be used for the new FS uclass.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-06-25 06:16:27 -06:00
parent 56c6289442
commit 8630e568b2
18 changed files with 43 additions and 35 deletions

View File

@@ -484,8 +484,8 @@ static efi_status_t file_read(struct file_handle *fh, u64 *buffer_size,
if (set_blk_dev(fh))
return EFI_DEVICE_ERROR;
if (fs_read(fh->path, map_to_sysmem(buffer), fh->offset,
*buffer_size, &actread))
if (fs_legacy_read(fh->path, map_to_sysmem(buffer), fh->offset,
*buffer_size, &actread))
return EFI_DEVICE_ERROR;
*buffer_size = actread;

View File

@@ -170,8 +170,8 @@ efi_status_t efi_var_from_file(void)
ret = efi_set_blk_dev_to_system_partition();
if (ret != EFI_SUCCESS)
goto error;
r = fs_read(EFI_VAR_FILE_NAME, map_to_sysmem(buf), 0, EFI_VAR_BUF_SIZE,
&len);
r = fs_legacy_read(EFI_VAR_FILE_NAME, map_to_sysmem(buf), 0,
EFI_VAR_BUF_SIZE, &len);
if (r || len < sizeof(struct efi_var_file)) {
log_err("Failed to load EFI variables\n");
goto error;