Input: ili210x - implement pressure reporting for ILI251x
authorMarek Vasut <marex@denx.de>
Mon, 4 Jan 2021 01:43:04 +0000 (17:43 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Feb 2021 08:29:22 +0000 (09:29 +0100)
commit3a492e4403ee2e3442397230d68e26e81525af90
treea900842e1b5d5f4e26164e4e99053de84aa939b8
parent1841be8d0bc6dbb5a2f545dbf1c5d0746f179f26
Input: ili210x - implement pressure reporting for ILI251x

commit 60159e9e7bc7e528c103b6b6d47dfd83af29669c upstream.

The ILI251x seems to report pressure information in the 5th byte of
each per-finger touch data element. On the available hardware, this
information has the values ranging from 0x0 to 0xa, which is also
matching the downstream example code. Report pressure information
on the ILI251x.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20201224071238.160098-1-marex@denx.de
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/ili210x.c