forked from mirrors/linux
		
	|  c8820c92ca Serdev recv_buf() callback is supposed to return the amount of bytes
consumed, therefore an int in between 0 and count.
Do not return negative number in case of issue, when
ssam_controller_receive_buf() returns ESHUTDOWN just returns 0, e.g. no
bytes consumed, this keep the exact same behavior as it was before.
This fixes a potential WARN in serdev-ttyport.c:ttyport_receive_buf().
Fixes:  | ||
|---|---|---|
| .. | ||
| aggregator | ||
| Kconfig | ||
| Makefile | ||
| surface3-wmi.c | ||
| surface3_power.c | ||
| surface_acpi_notify.c | ||
| surface_aggregator_cdev.c | ||
| surface_aggregator_hub.c | ||
| surface_aggregator_registry.c | ||
| surface_aggregator_tabletsw.c | ||
| surface_dtx.c | ||
| surface_gpe.c | ||
| surface_hotplug.c | ||
| surface_platform_profile.c | ||
| surfacepro3_button.c | ||