Input: elan_i2c - support touchpads with two physical buttons
authorKT Liao <kt.liao@emc.com.tw>
Fri, 18 Aug 2017 23:49:53 +0000 (16:49 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 19 Aug 2017 00:07:02 +0000 (17:07 -0700)
commit991368818df4a50f50d2ce673b308f946ed635a6
tree753911079edc4d049a805a1c82d64d93359fd727
parenta2ae5f0afde34eaecf3fbb13223b772ceaec6227
Input: elan_i2c - support touchpads with two physical buttons

Elan touchpads on Asus ROG G752xx series laptops have 2 physical buttons.
Luckily we can query the touchpad to see if it is a clickpad variant and
adjust the behavior accordingly.

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Tested-by: Maxime Bellengé <maxime.bellenge@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c.h
drivers/input/mouse/elan_i2c_core.c
drivers/input/mouse/elan_i2c_i2c.c
drivers/input/mouse/elan_i2c_smbus.c