diff options
author | Jiada Wang <jiada_wang@mentor.com> | 2020-05-11 23:12:13 +0300 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2020-05-12 23:18:26 +0300 |
commit | 5fc70e350edd30fb22d2f9b4e6d680c5471890ff (patch) | |
tree | d8309c519d60b22c752ce7cfb3b7aa72f9c0b66a /drivers/hid/hid-alps.c | |
parent | c9c457022b7df2ab515f0424e65445353f91ecad (diff) | |
download | linux-5fc70e350edd30fb22d2f9b4e6d680c5471890ff.tar.xz |
Input: introduce input_mt_report_slot_inactive()
input_mt_report_slot_state() ignores "tool" argument when the slot is
closed, which has caused a bit of confusion. Let's introduce
input_mt_report_slot_inactive() to report inactive slot state.
Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Jiada Wang <jiada_wang@mentor.com>
Link: https://lore.kernel.org/r/20200508055656.96389-2-jiada_wang@mentor.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/hid/hid-alps.c')
-rw-r--r-- | drivers/hid/hid-alps.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/hid/hid-alps.c b/drivers/hid/hid-alps.c index fa704153cb00..28588f74425e 100644 --- a/drivers/hid/hid-alps.c +++ b/drivers/hid/hid-alps.c @@ -387,8 +387,7 @@ static int u1_raw_event(struct alps_dev *hdata, u8 *data, int size) input_report_abs(hdata->input, ABS_MT_PRESSURE, z); } else { - input_mt_report_slot_state(hdata->input, - MT_TOOL_FINGER, 0); + input_mt_report_slot_inactive(hdata->input); } } |