]> git.baikalelectronics.ru Git - kernel.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)
commitd899a8f0ae4a884b1c78921d533f8d9a50b9f41f
tree003f65c61a620de968ed2455a99d935d14aaa646
parente28d93295108ef0e095e012f0ac07c280a08034c
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