linux-hardened/drivers/gnss
Johan Hovold 0bbf0a88fa serdev: make synchronous write return bytes written
Make the synchronous serdev_device_write() helper behave analogous to
the asynchronous serdev_device_write_buf() by returning the number of
bytes written (or rather buffered) also on timeout.

This will allow drivers to distinguish the case where data was partially
written from the case where no data was written.

Also update the only two users that checked the return value.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-11-27 19:44:21 +01:00
..
core.c gnss: fix potential error pointer dereference 2018-07-16 12:48:07 +02:00
Kconfig gnss: add driver for sirfstar-based receivers 2018-06-28 20:32:51 +09:00
Makefile gnss: add driver for sirfstar-based receivers 2018-06-28 20:32:51 +09:00
serial.c serdev: make synchronous write return bytes written 2018-11-27 19:44:21 +01:00
serial.h gnss: add generic serial driver 2018-06-28 20:31:32 +09:00
sirf.c serdev: make synchronous write return bytes written 2018-11-27 19:44:21 +01:00
ubx.c gnss: ubx: make struct ubx_gserial_ops static 2018-07-16 12:48:07 +02:00