Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae82d5ab authored by Imre Deak's avatar Imre Deak Committed by Dmitry Torokhov
Browse files

Input: ads7846 - report 0 pressure value along with pen up event



X touchscreen drivers that don't interpret the designated pen up message
assume a pen up event from a pressure value 0. For these we generate a
pressure 0 message along with the pen up message.

Signed-off-by: default avatarImre Deak <imre.deak@nokia.com>
Acked-by: default avatarJuha Yrjola <juha.yrjola@nokia.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent c9e617a5
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -375,11 +375,13 @@ static void ads7846_rx(void *ads)
	if (Rt) {
		input_report_abs(input_dev, ABS_X, x);
		input_report_abs(input_dev, ABS_Y, y);
		input_report_abs(input_dev, ABS_PRESSURE, Rt);
		sync = 1;
	}
	if (sync)

	if (sync) {
		input_report_abs(input_dev, ABS_PRESSURE, Rt);
		input_sync(input_dev);
	}

#ifdef	VERBOSE
	if (Rt || ts->pendown)