Skip to content

Commit

Permalink
HID: multitouch: remove one copy of values
Browse files Browse the repository at this point in the history
The current way of handling multitouch data is not very straightforward:
- in mt_event() we do nothing
- in mt_report() we:
  - do some gym to fetch the scantime and the contact count
  - then iterate over the input fields where we copy the data to a
    temporary place
  - when we see the last field in a slot, we then use this data to emit
    the input data

A more streamlined way is to first get all of the address in the report
of all fields, and then just pick the fields we are interested in in
mt_report()

Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
  • Loading branch information
bentiss authored and Jiri Kosina committed Jul 17, 2018
1 parent 8dfe14b commit 01eaac7
Showing 1 changed file with 264 additions and 281 deletions.
Loading

0 comments on commit 01eaac7

Please sign in to comment.