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

@@ -311,7 +311,7 @@ static size_t mmc_read_file(const char *file_name)
}
/* Perfrom file read */
rc = fs_read(file_name, get_load_addr(), 0, 0, &act_read);
rc = fs_legacy_read(file_name, get_load_addr(), 0, 0, &act_read);
if (rc)
return 0;
@@ -448,7 +448,7 @@ static size_t sata_read_file(const char *file_name)
}
/* Perfrom file read */
rc = fs_read(file_name, get_load_addr(), 0, 0, &act_read);
rc = fs_legacy_read(file_name, get_load_addr(), 0, 0, &act_read);
if (rc)
return 0;
@@ -624,7 +624,7 @@ static size_t usb_read_file(const char *file_name)
}
/* Perfrom file read */
rc = fs_read(file_name, get_load_addr(), 0, 0, &act_read);
rc = fs_legacy_read(file_name, get_load_addr(), 0, 0, &act_read);
if (rc)
return 0;