]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ad7879 - add option to correct xy axis
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 6 Jul 2012 17:44:19 +0000 (10:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 7 Jul 2012 02:12:26 +0000 (19:12 -0700)
commitaac4b02024965ea98ebfb3b26f85ced6dbb9e9d5
treeaca3138305a44c4766e19c69d4da43fc16e810d4
parent4066900d3f05877c836108f5cfcc850c8875f499
Input: ad7879 - add option to correct xy axis

Sebastian Zenker reported that driver swaps x and y samples when the
touchscreen leads are connected in accordance with the datasheet
specification.  Transposed axis can be typically corrected by touch
screen calibration however this bug also negatively influences touch
pressure measurements.

Add an option to correct x and y axis.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Reported-and-tested-by: Sebastian Zenker <sebastian.zenker@gmx.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7879.c
include/linux/spi/ad7879.h