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

@@ -442,7 +442,7 @@ static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
if (fs_set_blk_dev(interface, dev_part, fstype))
return FPGA_FAIL;
if (fs_read(filename, (u32) buf, pos, blocksize, &actread) < 0)
if (fs_legacy_read(filename, (u32)buf, pos, blocksize, &actread) < 0)
return FPGA_FAIL;
if (zynq_validate_bitstream(desc, buf, bsize, blocksize, &swap,
@@ -465,10 +465,12 @@ static int zynq_loadfs(xilinx_desc *desc, const void *buf, size_t bsize,
return FPGA_FAIL;
if (bsize > blocksize) {
if (fs_read(filename, (u32) buf, pos, blocksize, &actread) < 0)
if (fs_legacy_read(filename, (u32)buf, pos, blocksize,
&actread) < 0)
return FPGA_FAIL;
} else {
if (fs_read(filename, (u32) buf, pos, bsize, &actread) < 0)
if (fs_legacy_read(filename, (u32)buf, pos, bsize,
&actread) < 0)
return FPGA_FAIL;
}
} while (bsize > blocksize);