]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Jul 2014 01:59:08 +0000 (18:59 -0700)
commit4470cf9ba206c6a7e72bff8804132381166379ce
tree8a2ad3916642cbfeabe96b20ff6702b2b1a98f35
parentabd948c8bf6066d18a8a4a9c82fc7997a818134e
Input: synaptics - fix resolution for manually provided min/max

commit d49cb7aeebb974713f9f7ab2991352d3050b095b upstream.

commit 421e08c41fda 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/synaptics.c