mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
Input: ili210x - add missing negation for touch indication on ili210x
commitac05a8a927upstream. 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:e3559442af("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>
This commit is contained in:
parent
2fafe7d504
commit
072f787e87
|
|
@ -87,7 +87,7 @@ static bool ili210x_touchdata_to_coords(const u8 *touchdata,
|
||||||
unsigned int *x, unsigned int *y,
|
unsigned int *x, unsigned int *y,
|
||||||
unsigned int *z)
|
unsigned int *z)
|
||||||
{
|
{
|
||||||
if (touchdata[0] & BIT(finger))
|
if (!(touchdata[0] & BIT(finger)))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
*x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0);
|
*x = get_unaligned_be16(touchdata + 1 + (finger * 4) + 0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user