OSDN Git Service

Input: ili210x - define and use chip operations structure
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 7 Feb 2019 06:33:05 +0000 (22:33 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 12 Nov 2019 00:12:13 +0000 (16:12 -0800)
commitef536abd3afd1e3cbddf04c724db793f12ab9c44
treea2a9689a980b820ca9878bdbaba9b10bd5cae1fd
parentefda86a49553bc7e44b3f7254208577bff2da932
Input: ili210x - define and use chip operations structure

Instead of doing if/else if/else on the chip's model number let's define
chip operations structure and use it to perform indirect calls. With number
of protocols supported by the driver growing, this makes it better
maintainable.

This change includes fixes to checks whether the driver should continue
polling the controller by Sven Van Asbroeck <thesven73@gmail.com>.

Tested-by: Adam Ford <aford173@gmail.com> #imx6q-logicpd
Tested-by: Sven Van Asbroeck <TheSven73@gmail.com> # ILI2118A variant
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ili210x.c