Input: synaptics-rmi4 - stop scanning PDT after two empty pages
authorNick Dyer <nick@shmanahar.org>
Tue, 8 Nov 2016 01:33:07 +0000 (17:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 9 Nov 2016 00:23:21 +0000 (16:23 -0800)
commitad338e8b5c8cdb5142380cd6b058dfe24956ee93
treef3d9d3e2e10277dc8cf4ce41332e991d439ee48f
parentd27625c9d55bb671c1c6b3a7f2c2b50e9175f958
Input: synaptics-rmi4 - stop scanning PDT after two empty pages

We have encountered some RMI4 firmwares where there are blank pages in
between PDT pages which contain functions. This change makes them
correctly enumerate all functions on the device.

Tested on S7817 (has empty page 2).

Signed-off-by: Nick Dyer <nick@shmanahar.org>
[Tested successfully on S7817 and S7300 Synaptics touch controllers]
Tested-by: Chris Healy <cphealy@gmail.com>
Reviewed-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_driver.c