[U-Boot] [PATCH 22/25] misc: Update read() and write() methods to return bytes xfered
sjg at google.com
sjg at google.com
Thu Nov 22 20:20:30 UTC 2018
Hi Simon,
> From: Simon Glass <sjg at chromium.org>
> Sent: mardi 6 novembre 2018 23:22
> Subject: [PATCH 22/25] misc: Update read() and write() methods to return bytes
>
> At present these functions return 0 on success. For some devices we want to
> know how many bytes were transferred. It seems useful to adjust the API to be
> more like the POSIX read() and write() functions.
>
> Update these two methods, a test and all users.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> arch/arm/mach-stm32mp/cpu.c | 4 ++--
> drivers/clk/clk_vexpress_osc.c | 4 ++--
> drivers/misc/altera_sysid.c | 2 +-
> drivers/misc/misc_sandbox.c | 4 ++--
> drivers/misc/rockchip-efuse.c | 2 +-
> drivers/misc/stm32mp_fuse.c | 12 ++++++++++++
> include/misc.h | 8 ++++----
> 7 files changed, 24 insertions(+), 12 deletions(-)
Reviewed-by: Patrick Delaunay <patrick.delaunay at st.com>
Applied to u-boot-dm/master, thanks!
More information about the U-Boot
mailing list