Input: resistive-adc-touch - rework mapping of channels
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Jun 2021 22:18:11 +0000 (15:18 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Jun 2021 22:19:52 +0000 (15:19 -0700)
commit60b7db914dddcc94f455b62dbcc05b49d78f4cb6
treeed080a5df30430cfc153ac86ba0c2d97a41ba338
parent08729298c4eea5a9bbc0598d92ff47638a97a1ae
Input: resistive-adc-touch - rework mapping of channels

Instead of iterating over channels establish and use channel map to
retrieve data. As a side effect this will silence "uninitialized variable"
warnings.

Tested-by: Oleksij Rempel <o.rempel@pengutronix.de>
Link: https://lore.kernel.org/r/YLXR2brkc4H54xtK@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/resistive-adc-touch.c