Input: st1232 - simplify parsing of read buffer
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Oct 2019 17:11:23 +0000 (10:11 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Oct 2019 04:01:12 +0000 (21:01 -0700)
commit95c9ea96adb3c7be6295d017c7e2f594f0871c16
tree23189974099e16b868cb7e7e6c7237b57b1a7bed
parent78e45917bf7a066fffbeb3d87f4031109df6da55
Input: st1232 - simplify parsing of read buffer

Avoid complex 2-variable loop when parsing touchscreen data to make the
code clearer.

Acked-by: Martin Kepplinger <martink@posteo.de>
Tested-by: Matthias Fend <Matthias.Fend@wolfvision.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/st1232.c