summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-01-02 09:12:27 +0300
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-01-02 09:19:00 +0300
commit928eedf013b25fcaeb6aef2ad721ed92c2e8bc66 (patch)
tree56d0d8431e53523577556195acc083d3636360a9 /lib
parent4b4193256c8d3bc3a5397b5cd9494c2ad386317d (diff)
downloadlinux-928eedf013b25fcaeb6aef2ad721ed92c2e8bc66.tar.xz
Input: st1232 - fix off-by-one error in resolution handling
Before, the maximum coordinates were fixed to (799, 479) or (319, 479), depending on touchscreen controller type. The driver was changed to read the actual values from the touchscreen controller, but did not take into account the returned values are not the maximum coordinates, but the touchscreen resolution (e.g. 800 and 480). Fix this by subtracting 1. Fixes: 3a54a215410b1650 ("Input: st1232 - add support resolution reading") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/r/20201229162601.2154566-2-geert+renesas@glider.be Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions