diff options
author | PaulK <contact@paulk.fr> | 2012-04-16 15:58:07 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | 2013-03-09 20:27:54 +0100 |
commit | 238b9341f74f8f6ee6558e700a036134e6bcae46 (patch) | |
tree | bad3f9ae25055d3272051bd26107bf87faebb5df | |
parent | bd8fbfe81b84ad4ff1ead30528253ee20f373189 (diff) | |
download | kernel_goldelico_gta04-238b9341f74f8f6ee6558e700a036134e6bcae46.zip kernel_goldelico_gta04-238b9341f74f8f6ee6558e700a036134e6bcae46.tar.gz kernel_goldelico_gta04-238b9341f74f8f6ee6558e700a036134e6bcae46.tar.bz2 |
tsc2007: Inverted Y axis to have min Y matching screen top
-rw-r--r-- | drivers/input/touchscreen/tsc2007.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c index 0ff8463..7d0a87f 100644 --- a/drivers/input/touchscreen/tsc2007.c +++ b/drivers/input/touchscreen/tsc2007.c @@ -223,6 +223,9 @@ static irqreturn_t tsc2007_soft_irq(int irq, void *handle) if (rt <= ts->max_rt) { tsc2007_range_values(ts, &tc, &rt); + /* Invert Y to have ts->min_y to match the top. */ + tc.y = (ts->max_y - tc.y) + ts->min_y; + dev_dbg(&ts->client->dev, "DOWN point(%4d,%4d), pressure (%4u)\n", tc.x, tc.y, rt); |