Input: synaptics-rmi4 - fix axis-swap behavior
authorLucas Stach <l.stach@pengutronix.de>
Tue, 5 Jun 2018 17:34:54 +0000 (10:34 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:08:56 +0000 (13:08 +0200)
commit048f62f3725d30467d57b9a76e93a19c01af56b2
treeb94fdc11cecf4f4d7fcf1a7f50bcfa4926e4538f
parentd4108ed2a57fdbbedd99ebfac264d560e2e5eb73
Input: synaptics-rmi4 - fix axis-swap behavior

[ Upstream commit 645a397d325db6e1bb36588095ae637738b37693 ]

The documentation for the touchscreen-swapped-x-y property states that
swapping is done after inverting if both are used. RMI4 did it the other
way around, leading to inconsistent behavior with regard to other
touchscreens.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Nick Dyer <nick@shmanahar.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/rmi4/rmi_2d_sensor.c