提交 30ad7ba0 编写于 作者: P Pavel Machek 提交者: Dmitry Torokhov

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: NPavel Machek <pavel@ucw.cz>
Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
上级 722232bc
...@@ -608,7 +608,7 @@ static void ads7846_rx(void *ads) ...@@ -608,7 +608,7 @@ static void ads7846_rx(void *ads)
input_report_abs(input, ABS_X, x); input_report_abs(input, ABS_X, x);
input_report_abs(input, ABS_Y, y); 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); input_sync(input);
#ifdef VERBOSE #ifdef VERBOSE
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册