]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ad7879 - fix default x/y axis assignment
authorStefan Agner <stefan@agner.ch>
Tue, 8 Mar 2016 18:34:38 +0000 (10:34 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 8 Mar 2016 18:51:12 +0000 (10:51 -0800)
commit9e98ebc31fad2a2bc60aa18e15f07dc8401a67ec
tree086fcabe8ea4a4924702c85611bcb3dd89f14347
parentc52abd7a39257dccf71d60c238f54eaf70a168a6
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 2029827fd870 ("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>
drivers/input/touchscreen/ad7879.c