Commit ac05a8a9 authored by Hansem Ro's avatar Hansem Ro Committed by Dmitry Torokhov
Browse files

Input: ili210x - add missing negation for touch indication on ili210x



This adds the negation needed for proper finger detection on Ilitek
ili2107/ili210x. This fixes polling issues (on Amazon Kindle Fire)
caused by returning false for the cooresponding finger on the touchscreen.

Signed-off-by: default avatarHansem Ro <hansemro@outlook.com>
Fixes: e3559442 ("ili210x - rework the touchscreen sample processing")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d0034a7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static bool ili210x_touchdata_to_coords(const u8 *touchdata,
					unsigned int *x, unsigned int *y,
					unsigned int *z)
{
	if (touchdata[0] & BIT(finger))
	if (!(touchdata[0] & BIT(finger)))
		return false;

	*x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0);