]> www.infradead.org Git - users/dwmw2/linux.git/commit
Input: elan_i2c - check if device is there before really probing
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 19 Dec 2014 20:57:49 +0000 (12:57 -0800)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:23 +0000 (21:36 -0400)
commitb881cc286c391e4d83432d186d10604e2227ff07
treede04d7ea0a90f6aa3b951628f556dc9da2193754
parente7e4c481cc16c4cb34402f52aea8c2aa3ef3dd90
Input: elan_i2c - check if device is there before really probing

[ Upstream commit c5928551fd41b2eecdad78fa2be2a4a13ed5fde9 ]

Before trying to properly initialize the touchpad and generate bunch of
errors, let's first see it there is anything at the given address. If we
get error, fail silently with -ENXIO.

Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/input/mouse/elan_i2c_core.c