input: edt-ft5x06: Only look at the number of points reported
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 30 Nov 2021 17:28:50 +0000 (17:28 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:32 +0000 (16:04 +0000)
commitb48b6039567d7bb2f7561be44bee7ea9b77c2ec5
tree7aaa55a53247da2da898eeb504fb893ac5181b24
parent1bb1e118161f890a8724321c6afb473742a57548
input: edt-ft5x06: Only look at the number of points reported

Register 0x02 in the FT5x06 is TD_STATUS containing the number
of valid touch points being reported.

Iterate over that number of points rather than all that are
supported on the device.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/input/touchscreen/edt-ft5x06.c