]> git.baikalelectronics.ru Git - kernel.git/commit
Input: psmouse - ensure that focaltech reports consistent coordinates
authorMathias Gottschlag <mgottschlag@gmail.com>
Sat, 7 Mar 2015 21:27:08 +0000 (13:27 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 7 Mar 2015 21:40:20 +0000 (13:40 -0800)
commit1cae0cf9ce82573f5a5598ab2f2530e1e1648d0c
tree2d0a85cfb4a397773f63f4b24d5052984c9c7b84
parent1a8032495f1ed1a56e2d4a0f4a43a9101846f375
Input: psmouse - ensure that focaltech reports consistent coordinates

We don't know whether x_max or y_max really hold the maximum possible
coordinates, and we don't know for sure whether we correctly interpret the
coordinates sent by the touchpad, so we clamp the reported values to
prevent confusion in userspace code.

Signed-off-by: Mathias Gottschlag <mgottschlag@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/focaltech.c