mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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>
This commit is contained in:
parent
c9c457022b
commit
5fc70e350e
12 changed files with 21 additions and 21 deletions
|
@ -100,7 +100,7 @@ static void rpi_ts_poll(struct input_dev *input)
|
|||
released_ids = ts->known_ids & ~modified_ids;
|
||||
for_each_set_bit(i, &released_ids, RPI_TS_MAX_SUPPORTED_POINTS) {
|
||||
input_mt_slot(input, i);
|
||||
input_mt_report_slot_state(input, MT_TOOL_FINGER, 0);
|
||||
input_mt_report_slot_inactive(input);
|
||||
modified_ids &= ~(BIT(i));
|
||||
}
|
||||
ts->known_ids = modified_ids;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue