Input: wacom_w8001 - handle touch error case correctly
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 3 Dec 2015 20:24:26 +0000 (12:24 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 3 Dec 2015 23:58:51 +0000 (15:58 -0800)
commite171735410ae5a0ebf90d6bc6a8a97fc28bfc041
tree4d53b92a839f05c3266df8607bf4b292627bdcfd
parentec9acda7360de7ee70cc0db36f41c1fd819a3310
Input: wacom_w8001 - handle touch error case correctly

If a device failed at the pen setup and gets a zero reply from the touch
device, we need to return an error. Otherwise we have a device with
nothing but a name and the EV_KEY and EV_ABS bits.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Acked-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/wacom_w8001.c