1 From b10b3d37ad0e11970fa416ad5a741dbb558d821c Mon Sep 17 00:00:00 2001
2 From: Sasha Levin <sashal@kernel.org>
3 Date: Fri, 1 Mar 2024 17:41:00 +0100
4 Subject: input/touchscreen: imagis: Correct the maximum touch area value
6 From: Markuss Broks <markuss.broks@gmail.com>
8 [ Upstream commit 54a62ed17a705ef1ac80ebca2b62136b19243e19 ]
10 As specified in downstream IST3038B driver and proved by testing,
11 the correct maximum reported value of touch area is 16.
13 Signed-off-by: Markuss Broks <markuss.broks@gmail.com>
14 Signed-off-by: Karel Balej <balejk@matfyz.cz>
15 Link: https://lore.kernel.org/r/20240301164659.13240-2-karelb@gimli.ms.mff.cuni.cz
16 Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
17 Signed-off-by: Sasha Levin <sashal@kernel.org>
19 drivers/input/touchscreen/imagis.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
22 diff --git a/drivers/input/touchscreen/imagis.c b/drivers/input/touchscreen/imagis.c
23 index 07111ca244556..e67fd30110278 100644
24 --- a/drivers/input/touchscreen/imagis.c
25 +++ b/drivers/input/touchscreen/imagis.c
26 @@ -210,7 +210,7 @@ static int imagis_init_input_dev(struct imagis_ts *ts)
28 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_X);
29 input_set_capability(input_dev, EV_ABS, ABS_MT_POSITION_Y);
30 - input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 255, 0, 0);
31 + input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, 16, 0, 0);
33 touchscreen_parse_properties(input_dev, true, &ts->prop);
34 if (!ts->prop.max_x || !ts->prop.max_y) {