summaryrefslogtreecommitdiffstats
path: root/drivers/misc/misc_sandbox.c
Commit message (Collapse)AuthorAgeFilesLines
* misc: Update read() and write() methods to return bytes xferedSimon Glass2018-11-201-2/+2
| | | | | | | | | | | 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>
* test: Add tests for misc uclassMario Six2018-08-111-0/+133
Add a set of tests for the misc uclass. Signed-off-by: Mario Six <mario.six@gdsys.cc> Reviewed-by: Simon Glass <sjg@chromium.org>