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)
commitc9bfb2f0031a2de664147ebbfb90f95bb12fdf79
tree1edb9a109b60a448b7f5be303008eb03b0564479
parentcf5dd48907bebaefdb43a8ca079be77e8da2cb20
Input: stmfts - fix setting ABS_MT_POSITION_* maximum size

The commit 78bcac7b2ae1e ("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 78bcac7b2ae1e 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: 78bcac7b2ae1e ("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