]> git.hungrycats.org Git - linux/commit
Input: ads7846 - don't report pressure for ads7845
authorLuca Ellero <l.ellero@asem.it>
Thu, 26 Jan 2023 10:52:25 +0000 (11:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2024 12:21:50 +0000 (13:21 +0100)
commit2d89ed2e06292d27be27ef918eaa81891961eba0
tree4db78dc7adc29e8595c3a9f8f543872bc3ab6ccf
parentf992d1afd17f2c129aa5a891fcc2255cc70ca380
Input: ads7846 - don't report pressure for ads7845

[ Upstream commit d50584d783313c8b05b84d0b07a2142f1bde46dd ]

ADS7845 doesn't support pressure.
Avoid the following error reported by libinput-list-devices:
"ADS7845 Touchscreen: kernel bug: device has min == max on ABS_PRESSURE".

Fixes: ffa458c1bd9b ("spi: ads7846 driver")
Signed-off-by: Luca Ellero <l.ellero@asem.it>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230126105227.47648-2-l.ellero@asem.it
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/touchscreen/ads7846.c