summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarkuss Broks <markuss.broks@gmail.com>2024-03-01 19:41:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-04-13 14:07:36 +0300
commit44723bd493cd491a1f03664df61f5d120cb63a08 (patch)
tree92c47cd054749a034221748f213a0d20bb96a6cd /drivers
parentd0e2f7ae04bbbf8cc8b8fdb26113fbf67d201e75 (diff)
downloadlinux-44723bd493cd491a1f03664df61f5d120cb63a08.tar.xz
input/touchscreen: imagis: Correct the maximum touch area value
[ Upstream commit 54a62ed17a705ef1ac80ebca2b62136b19243e19 ] As specified in downstream IST3038B driver and proved by testing, the correct maximum reported value of touch area is 16. Signed-off-by: Markuss Broks <markuss.broks@gmail.com> Signed-off-by: Karel Balej <balejk@matfyz.cz> Link: https://lore.kernel.org/r/20240301164659.13240-2-karelb@gimli.ms.mff.cuni.cz Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/input/touchscreen/imagis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen/imagis.c
index 07111ca24455..e67fd3011027 100644
--- a/drivers/input/touchscreen/imagis.c
+++ b/drivers/input/touchscreen/imagis.c
@@ -210,7 +210,7 @@ static int imagis_init_input_dev(struct imagis_ts *ts)
input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X);
input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y);
- input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
+ input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 16, 0, 0);
touchscreen_parse_properties(input_dev, true, &ts->prop);
if (!ts->prop.max_x || !ts->prop.max_y) {