Input: alps - fix v4 button press recognition
authorAndreas Bosch <linux@progandy.de>
Wed, 15 Oct 2014 17:44:50 +0000 (10:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 15 Oct 2014 17:57:19 +0000 (10:57 -0700)
commitb0cfb794a3dd1d699f3e453f9180bd06508fb8f0
tree2a53b17119ffa56c8621098b9043159b9c105393
parent4af6600fd793023c01634cca5abfe4a2b707788f
Input: alps - fix v4 button press recognition

Since the change to struct input_mt_pos some variables are now bitfields
instead of integers. Automatic conversion from integer to bitfield entry
destroys information, therefore enforce boolean interpretation instead.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1114768
Fixes: 02d04254a5df ("Input: alps - use struct input_mt_pos to track coordinates")
Signed-off-by: Andreas Bosch <linux@progandy.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c