[U-Boot] [PATCH 22/25] misc: Update read() and write() methods to return bytes xfered

Patrick DELAUNAY
2018-11-08T11:03:57Z

Hi Simon,

> From: Simon Glass <sjg@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@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@st.com>