summaryrefslogtreecommitdiff
path: root/drivers/input/mouse/elantech.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2014-06-07 22:37:47 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-07-06 18:59:08 -0700
commit4470cf9ba206c6a7e72bff8804132381166379ce (patch)
tree8a2ad3916642cbfeabe96b20ff6702b2b1a98f35 /drivers/input/mouse/elantech.c
parentabd948c8bf6066d18a8a4a9c82fc7997a818134e (diff)
downloadlwn-4470cf9ba206c6a7e72bff8804132381166379ce.tar.gz
lwn-4470cf9ba206c6a7e72bff8804132381166379ce.zip
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>
Diffstat (limited to 'drivers/input/mouse/elantech.c')
0 files changed, 0 insertions, 0 deletions