]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: of_touchscreen - fix setting max values on X/Y axis
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Jul 2015 21:57:54 +0000 (14:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 12 Jul 2015 00:26:37 +0000 (17:26 -0700)
commit517178692ccd730a95b278bd8cd67e11498a9a84
tree003f65c61a620de968ed2455a99d935d14aaa646
parentf61fd21dea1b9b40edfab07bdcd60d6a3bd95ba1
Input: of_touchscreen - fix setting max values on X/Y axis

The binding specification says that "touchscreen-size-x" and "-y" specify
horizontal and vertical resolution of the touchscreen and therefore maximum
absolute coordinates should be reduced by 1 since we are starting with 0.

Reviewed-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/of_touchscreen.c