Input: synaptics - refactor y inversion
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 24 Aug 2011 06:00:24 +0000 (23:00 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 24 Aug 2011 06:07:56 +0000 (23:07 -0700)
commit6de58dd625a7645008c5c450bf97a5793faf58c3
tree0b01737e03693592824857412dce4e01f4b4e22d
parent66fd9385ee9c582ee88031ba5028748cb38c986d
Input: synaptics - refactor y inversion

Synaptics touchpads report increasing y from bottom to top.
This is inverted from normal userspace "top of screen is 0" coordinates.
Thus, the kernel driver reports inverted y coordinates to userspace.

This patch refactors this inversion.

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Acked-by: Chase Douglas <chase.douglas@canonical.com>
Acked-by: Henrik Rydberg <rydberg@euromail.se>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/mouse/synaptics.c