Input: elantech - reset the device when elantech probe fails
authorUlrik De Bie <ulrik.debie-os@e2big.org>
Sat, 23 Aug 2014 00:08:21 +0000 (17:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Aug 2014 22:17:36 +0000 (15:17 -0700)
commitac84eba220c401f7616237ee6e5b73f66afb3590
treef5e0158822ee117cd3a368ea358fec2318720c72
parenta9e06219df9ce92567aa1cb3dd5e0bb498afb93b
Input: elantech - reset the device when elantech probe fails

elantech_init() calls elantech_set_absolute_mode which sets the driver in
an absolute mode. When after this the elantech_init fails, it is best to
turn the ps/2 mouse emulation mode back on by calling psmouse_reset() so
that it can work as a regular mouse.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulrik De Bie <ulrik.debie-os@e2big.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c