Skip to content

Commit 072f787

Browse files
hansemrogregkh
authored andcommitted
Input: ili210x - add missing negation for touch indication on ili210x
commit ac05a8a upstream. 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 <hansemro@outlook.com> Fixes: e355944 ("ili210x - rework the touchscreen sample processing") Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 2fafe7d commit 072f787

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)