Skip to content

Commit ac05a8a

Browse files
hansemrodtor
authored andcommitted
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: Hansem Ro <[email protected]> Fixes: e355944 ("ili210x - rework the touchscreen sample processing") Cc: [email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent d0034a7 commit ac05a8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/input/touchscreen/ili210x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static bool ili210x_touchdata_to_coords(const u8 *touchdata,
8787
unsigned int *x, unsigned int *y,
8888
unsigned int *z)
8989
{
90-
if (touchdata[0] & BIT(finger))
90+
if (!(touchdata[0] & BIT(finger)))
9191
return false;
9292

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

0 commit comments

Comments
 (0)