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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user