u-boot/drivers/misc
Simon Glass 8729b1ae2c 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>
2018-11-20 19:14:22 -07:00
..
imx8 dm: core: Respect drivers with the DM_FLAG_PRE_RELOC flag in lists_bind_fdt() 2018-11-14 09:16:27 -08:00
ali512x.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
altera_sysid.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
atsha204a-i2c.c drivers/misc: Add basic support for ATSHA204A Crypto module 2017-07-12 06:57:38 +02:00
cbmem_console.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cros_ec.c cros_ec: Add new features for events and power 2018-11-20 19:14:22 -07:00
cros_ec_i2c.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cros_ec_lpc.c cros_ec: Add support for v3 messages on LPC 2018-10-09 04:40:27 -06:00
cros_ec_sandbox.c cros_ec: Add new features for events and power 2018-11-20 19:14:22 -07:00
cros_ec_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ds4510.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ds4510.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fs_loader.c misc: fs_loader: Fix compiler warning 2018-11-16 16:52:01 -05:00
fsl_devdis.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_ifc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_iim.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_portals.c armv8: ls1043a: enable icid setup for qman portals 2018-09-27 08:58:33 -07:00
fsl_sec_mon.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gdsys_ioep.c misc: Add gdsys_ioep driver 2018-08-11 16:00:50 +02:00
gdsys_ioep.h misc: Add gdsys_ioep driver 2018-08-11 16:00:50 +02:00
gdsys_rxaui_ctrl.c gdsys: drivers: Add gdsys_rxaui_ctrl driver 2018-05-08 18:50:23 -04:00
gdsys_soc.c misc: Add gdsys_soc driver 2018-11-14 09:16:27 -08:00
gdsys_soc.h misc: Add gdsys_soc driver 2018-11-14 09:16:27 -08:00
gpio_led.c status_led: Kconfig migration 2017-01-21 15:12:33 -05:00
i2c_eeprom.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
i2c_eeprom_emul.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ihs_fpga.c misc: Add IHS FPGA driver 2018-11-14 09:16:27 -08:00
ihs_fpga.h misc: Add IHS FPGA driver 2018-11-14 09:16:27 -08:00
Kconfig misc: Add IHS FPGA driver 2018-11-14 09:16:27 -08:00
Makefile misc: Add IHS FPGA driver 2018-11-14 09:16:27 -08:00
mc9sdz60.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc-uclass.c misc: uclass: Add enable/disable function 2018-08-11 16:00:19 +02:00
misc_sandbox.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
mpc83xx_serdes.c misc: Add MPC83xx serdes driver 2018-09-18 08:12:21 -06:00
mpc83xx_serdes.h misc: Add MPC83xx serdes driver 2018-09-18 08:12:21 -06:00
mxc_ocotp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mxs_ocotp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ns87308.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nuvoton_nct6102d.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pca9551_led.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pwrseq-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
qfw.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rockchip-efuse.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
smsc_lpc47m.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
smsc_sio1007.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spltest_sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
status_led.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_rcc.c misc: stm32: Add STM32MP1 support 2018-07-20 15:55:05 -04:00
stm32mp_fuse.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
swap_case.c test: dm: pci: Add cases for finding next PCI capability APIs 2018-11-14 09:16:28 -08:00
syscon_sandbox.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra186_bpmp.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra_car.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
twl4030_led.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
vexpress_config.c misc: Add support for the Arm Versatile Express config bus 2018-10-06 09:04:18 -04:00
winbond_w83627.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00