summaryrefslogtreecommitdiffstats
path: root/include/linux/spi
diff options
context:
space:
mode:
authorMichael Hennerich <michael.hennerich@analog.com>2012-07-06 10:44:19 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-07-06 19:12:26 -0700
commit6680884a44207efe8ef6bc56b1c932cce2b89994 (patch)
treeaca3138305a44c4766e19c69d4da43fc16e810d4 /include/linux/spi
parentf2bb26b9b7652287719f08f080c09c2d7ddcf6b5 (diff)
downloadlinux-6680884a44207efe8ef6bc56b1c932cce2b89994.tar.gz
linux-6680884a44207efe8ef6bc56b1c932cce2b89994.tar.bz2
linux-6680884a44207efe8ef6bc56b1c932cce2b89994.zip
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>
Diffstat (limited to 'include/linux/spi')
-rw-r--r--include/linux/spi/ad7879.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/ad7879.h b/include/linux/spi/ad7879.h
index 6334cee1a3be..58368be0b4c0 100644
--- a/include/linux/spi/ad7879.h
+++ b/include/linux/spi/ad7879.h
@@ -12,6 +12,8 @@ struct ad7879_platform_data {
u16 y_min, y_max;
u16 pressure_min, pressure_max;
+ bool swap_xy; /* swap x and y axes */
+
/* [0..255] 0=OFF Starts at 1=550us and goes
* all the way to 9.440ms in steps of 35us.
*/