Input: elan_i2c - don't require known iap version
authorDaniel Drake <drake@endlessm.com>
Sat, 19 Sep 2015 16:49:45 +0000 (09:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Sep 2015 16:32:39 +0000 (09:32 -0700)
commit9d7b03f863f2fc8bd80e83d3a2d7e521094d290e
treea6fda44c34f6b6357a794c13899062dbb9b05585
parent002801fc5372ecb725f0d7939f88ca752ce1d499
Input: elan_i2c - don't require known iap version

The Asus X456UA has an ELAN1000 touchpad with IAP version 0xe.  This is
unknown to elan_get_fwinfo() so driver probe fails and I am left with an
unusable touchpad.

However, the fwinfo is not required for general driver usage, it is only
needed if the user decides to upload new firmware.

Adjust the driver so that we do not abort probe when we encounter
unexpected IAP version, but rather warn user that firmware update feature
of the driver will not work.

Signed-off-by: Daniel Drake <drake@endlessm.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c