]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics - fix resolution for manually provided min/max
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Sun, 8 Jun 2014 05:37:47 +0000 (22:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 8 Jun 2014 06:20:46 +0000 (23:20 -0700)
commit7035a66ad653c627cb99b0b070c85353bcfab22e
treef9f8b73c046bd5ac83d57a6f3f23ba42dc519f41
parentaed478fe5fe34a4e98af36b0abae2c95194f2dfe
Input: synaptics - fix resolution for manually provided min/max

commit a147d361064b fixed the reported min/max for the X and Y axis,
but unfortunately, it broke the resolution of those same axis.

On the t540p, the resolution is the same regarding X and Y. It is not
a problem for xf86-input-synaptics because this driver is only interested
in the ratio between X and Y.
Unfortunately, xf86-input-cmt uses directly the resolution, and having a
null resolution leads to some divide by 0 errors, which are translated by
-infinity in the resulting coordinates.

Reported-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c