commit | 8729b1ae2cbda83059a55811614a2b0dbfdf7e53 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Nov 06 15:21:39 2018 -0700 |
committer | Simon Glass <sjg@chromium.org> | Tue Nov 20 19:14:22 2018 -0700 |
tree | 65fa9cfd636340f9c9fc97bb3fa76de36c5bf1e2 | |
parent | 96794a3eaee9bf368efe475f0a040d0e08b09dc9 [diff] |
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: Simon Glass <sjg@chromium.org> Reviewed-by: Patrick Delaunay <patrick.delaunay@st.com>