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