Skip to content
Snippets Groups Projects
Commit 8729b1ae authored by Simon Glass's avatar Simon Glass
Browse files

misc: Update read() and write() methods to return bytes xfered


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: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarPatrick Delaunay <patrick.delaunay@st.com>
parent 96794a3e
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment