diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-05-28 03:33:33 +0200 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2019-05-28 03:50:41 +0200 |
commit | fd1cf11f7130977d44fc19bf7ced63a4b6f1fc30 (patch) | |
tree | 2e18369584480fd6e46c657c051038d6aa206b4a /drivers/input/mouse/elantech.h | |
parent | Input: elantech - add helper function elantech_is_buttonpad() (diff) | |
download | linux-fd1cf11f7130977d44fc19bf7ced63a4b6f1fc30.tar.xz linux-fd1cf11f7130977d44fc19bf7ced63a4b6f1fc30.zip |
Input: elantech - detect middle button based on firmware version
Looks like the new generation of Lenovo machine also need to
be added to the PnPID whitelist. This is definitively not going
to scale, as there is nothing that tells us currently if a
touchpad supports a true physical middle button.
Consider that all new touchpads that are not clickpads
(so matching ETP_NEW_IC_SMBUS_HOST_NOTIFY) are handling 3 physical
buttons.
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/mouse/elantech.h')
-rw-r--r-- | drivers/input/mouse/elantech.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/input/mouse/elantech.h b/drivers/input/mouse/elantech.h index 194503ed59c5..16174b54ffc3 100644 --- a/drivers/input/mouse/elantech.h +++ b/drivers/input/mouse/elantech.h @@ -158,6 +158,7 @@ struct elantech_device_info { bool crc_enabled; bool set_hw_resolution; bool has_trackpoint; + bool has_middle_button; int (*send_cmd)(struct psmouse *psmouse, unsigned char c, unsigned char *param); }; |