]> 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)
commit28832c51d16bc3bfbfd16516503a1448f4e01aaa
treea2a9689a980b820ca9878bdbaba9b10bd5cae1fd
parent2cadd149c1446c77e4e5ae2544ae20c7098c132f
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