fileio: refactor struct fileio to be an opaque structure
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -180,7 +180,7 @@ COMMAND_HELPER(nand_fileio_parse_args, struct nand_fileio_state *state,
|
||||
return retval;
|
||||
|
||||
if (!need_size)
|
||||
state->size = state->fileio.size;
|
||||
state->size = fileio_size(&state->fileio);
|
||||
|
||||
*dev = nand;
|
||||
|
||||
|
||||
@@ -389,8 +389,8 @@ COMMAND_HANDLER(handle_nand_dump_command)
|
||||
if (nand_fileio_finish(&s) == ERROR_OK)
|
||||
{
|
||||
command_print(CMD_CTX, "dumped %ld bytes in %fs (%0.3f KiB/s)",
|
||||
(long)s.fileio.size, duration_elapsed(&s.bench),
|
||||
duration_kbps(&s.bench, s.fileio.size));
|
||||
(long)fileio_size(&s.fileio), duration_elapsed(&s.bench),
|
||||
duration_kbps(&s.bench, fileio_size(&s.fileio)));
|
||||
}
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user