summaryrefslogtreecommitdiffstats
path: root/drivers/input/input-compat.h
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2016-03-08 10:34:38 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2016-03-08 10:51:12 -0800
commit5f2940c4a544ae9040d0feff6da06a994cc201ff (patch)
tree086fcabe8ea4a4924702c85611bcb3dd89f14347 /drivers/input/input-compat.h
parent4774f400935fbb44a25f5e8fd5c5583431e28ac1 (diff)
downloadop-kernel-dev-5f2940c4a544ae9040d0feff6da06a994cc201ff.zip
op-kernel-dev-5f2940c4a544ae9040d0feff6da06a994cc201ff.tar.gz
Input: ad7879 - fix default x/y axis assignment
The X/Y position measurements read from the controller are interpreted wrong. The first measurement X+ contains the Y position, and the second measurement Y+ the X position (see also Table 11 Register Table in the data sheet). The problem is already known and a swap option has been introduced: commit 6680884a4420 ("Input: ad7879 - add option to correct xy axis") However, the meaning of the new boolean is inverted since the underlying values are already swapped. Let ts->swap_xy set to true actually be the swapped configuration of the two axis. Signed-off-by: Stefan Agner <stefan@agner.ch> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/input-compat.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud