]> 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)
commitb5bc17e271814fa1cb03f4fd978a7218a97829f2
tree5575d7d34621e31656db751589d0095b0084c878
parenta0d187155933b2dd9a26877acc15759674be04e0
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