]> git.baikalelectronics.ru Git - kernel.git/commit
Input: stmfts - fix setting ABS_MT_POSITION_* maximum size
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 19 Oct 2017 00:28:36 +0000 (17:28 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 19 Oct 2017 00:54:13 +0000 (17:54 -0700)
commitb8253c7df962a57a0084c59fa3676951892c526e
tree1edb9a109b60a448b7f5be303008eb03b0564479
parentf533405106817f48ecd5ed3a306616828be13e82
Input: stmfts - fix setting ABS_MT_POSITION_* maximum size

The commit 8b74d0821efc8 ("Input: add support for the STMicroelectronics
FingerTip touchscreen) used the 'touchscreen_parse_properties()' helper
function in order to get the value of common properties.

But, commit 8b74d0821efc8 didn't set the capability of ABS_MT_POSITION_*
before calling touchscreen_parse_properties(). In result, the max_x and
max_y of 'struct touchscreen_properties' were not set.

Fixes: 8b74d0821efc8 ("Input: add support for the STMicroelectronics FingerTip touchscreen")
Cc: stable@vger.kernel.org
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c