aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/ads7846.c
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>2009-11-23 08:17:38 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-11-23 08:49:58 -0800
commit30ad7ba0a55ef394c6956c886ddd058173153506 (patch)
treeaa53954cd7b6cf8762eb1005d1c381dd412f414e /drivers/input/touchscreen/ads7846.c
parentInput: usbtouchscreen - remove unneeded usb_kill_urb (diff)
downloadlinux-dev-30ad7ba0a55ef394c6956c886ddd058173153506.tar.xz
linux-dev-30ad7ba0a55ef394c6956c886ddd058173153506.zip
Input: ads7846 - fix pressure reporting
On Zaurus, hx4700 and others pressure is reported inverted -- the lighter the pressure, the bigger numerical value. Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to '')
-rw-r--r--drivers/input/touchscreen/ads7846.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 09c810999b92..033233d2b5eb 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -608,7 +608,7 @@ static void ads7846_rx(void *ads)
input_report_abs(input, ABS_X, x);
input_report_abs(input, ABS_Y, y);
- input_report_abs(input, ABS_PRESSURE, Rt);
+ input_report_abs(input, ABS_PRESSURE, ts->pressure_max - Rt);
input_sync(input);
#ifdef VERBOSE