]> git.proxmox.com Git - mirror_ubuntu-artful-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)
commit02d04254a5dfb8de1459805c3433cd0e9e4853d7
tree5575d7d34621e31656db751589d0095b0084c878
parent28835f4540564e6319028c9c1aeadf16604bed9c
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