Input: introduce input_mt_report_slot_inactive()
authorJiada Wang <jiada_wang@mentor.com>
Mon, 11 May 2020 20:12:13 +0000 (13:12 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 May 2020 20:18:26 +0000 (13:18 -0700)
commit5fc70e350edd30fb22d2f9b4e6d680c5471890ff
treed8309c519d60b22c752ce7cfb3b7aa72f9c0b66a
parentc9c457022b7df2ab515f0424e65445353f91ecad
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>
12 files changed:
drivers/hid/hid-alps.c
drivers/hid/hid-multitouch.c
drivers/input/misc/xen-kbdfront.c
drivers/input/mouse/elan_i2c_core.c
drivers/input/touchscreen/atmel_mxt_ts.c
drivers/input/touchscreen/cyttsp4_core.c
drivers/input/touchscreen/cyttsp_core.c
drivers/input/touchscreen/melfas_mip4.c
drivers/input/touchscreen/mms114.c
drivers/input/touchscreen/raspberrypi-ts.c
drivers/input/touchscreen/stmfts.c
include/linux/input/mt.h