Input: synaptics - do not abuse -1 as return value
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 24 Mar 2017 01:38:14 +0000 (18:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2017 23:23:58 +0000 (16:23 -0700)
commit212baf03a30a8fb29ab5f69726bb920ebe3d44a1
tree2a103907dc92fa0c19b2f418b7cdb141820beab9
parent991d29fe02a767d13275b38d774cf7c35a4f4a44
Input: synaptics - do not abuse -1 as return value

Let's stop using -1 as a universal return value and instead propagate
errors from underlying calls up the stack.

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c