Skip to content
Commit 4fa07711 authored by Dmitry Torokhov's avatar Dmitry Torokhov
Browse files

Input: serio_raw - return proper result when serio_raw_write fails



If serio_raw_write was always returning number of bytes successfully
sent to serio port and never signalled error condition to the caller.
Change it so that for completely failed transfers appropriate error
code returned to the caller (partially successful writes still return
number of bytes transferred).

Reported-by: default avatarChe-liang Chiou <clchiou@chromium.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 0c62fbf6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment