Skip to content

Commit

Permalink
Input: ads7846 - fix pressure reporting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Machek authored and Dmitry Torokhov committed Nov 23, 2009
1 parent 722232b commit 30ad7ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 30ad7ba

Please sign in to comment.