]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77d7e717a625ed1067e3fb7adaae8c2095a68178
treea2a9689a980b820ca9878bdbaba9b10bd5cae1fd
parent1739dfe9eeeef8937c59444e92ca653c3dd0bde9
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