]> Git Repo - J-linux.git/commitdiff
Input: ili210x - add missing negation for touch indication on ili210x
authorHansem Ro <[email protected]>
Thu, 6 May 2021 20:27:10 +0000 (13:27 -0700)
committerDmitry Torokhov <[email protected]>
Thu, 6 May 2021 22:10:20 +0000 (15:10 -0700)
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: e3559442afd2a ("ili210x - rework the touchscreen sample processing")
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/touchscreen/ili210x.c

index d8fccf048bf449b465422922e96deaaf71a2a40f..30576a5f2f045d4e53dda760400ef4e1d6eaf021 100644 (file)
@@ -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);
This page took 0.047679 seconds and 4 git commands to generate.