]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - use struct input_mt_pos to track coordinates
authorHans de Goede <hdegoede@redhat.com>
Sat, 26 Jul 2014 05:43:35 +0000 (22:43 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 26 Jul 2014 21:03:16 +0000 (14:03 -0700)
commit03354ba47a34c2a62d132083783a43aba62c0926
tree5575d7d34621e31656db751589d0095b0084c878
parent3503527a0b0cd1bfc369f6ecafc517e42576a9ce
Input: alps - use struct input_mt_pos to track coordinates

This is a preparation patch for switching the DIY mt handling to using
input_mt_assign_slots && input_mt_sync_frame.

struct alps_fields is quite large, so while making changes to almost all uses
of it lets put it in our priv data instead of on the stack.

Having it in our priv data also allows using it directly for storing values
which need to be cached, rather then having separate x, y, z, fingers, etc.
copies in our priv data.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c
drivers/input/mouse/alps.h