Input: ili210x - fix ili251x_read_touch_data() return value
authorJohn Keeping <jkeeping@inmusicbrands.com>
Thu, 23 May 2024 08:56:24 +0000 (09:56 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 7 Jun 2024 23:35:36 +0000 (16:35 -0700)
commit9f0fad0382124e7e23b3c730fa78818c22c89c0a
tree50976871cc2f594e2f768cbee37cc415d8b0050c
parent955af6355ddfe35140f9706a635838212a32513b
Input: ili210x - fix ili251x_read_touch_data() return value

The caller of this function treats all non-zero values as an error, so
the return value of i2c_master_recv() cannot be returned directly.

This fixes touch reporting when there are more than 6 active touches.

Fixes: ef536abd3afd1 ("Input: ili210x - define and use chip operations structure")
Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Link: https://lore.kernel.org/r/20240523085624.2295988-1-jkeeping@inmusicbrands.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c