]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-6.8/input-touchscreen-imagis-correct-the-maximum-touch-a.patch
Fixes for 6.8
[thirdparty/kernel/stable-queue.git] / queue-6.8 / input-touchscreen-imagis-correct-the-maximum-touch-a.patch
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
5
6 From: Markuss Broks <markuss.broks@gmail.com>
7
8 [ Upstream commit 54a62ed17a705ef1ac80ebca2b62136b19243e19 ]
9
10 As specified in downstream IST3038B driver and proved by testing,
11 the correct maximum reported value of touch area is 16.
12
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>
18 ---
19 drivers/input/touchscreen/imagis.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
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)
27
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);
32
33 touchscreen_parse_properties(input_dev, true, &ts->prop);
34 if (!ts->prop.max_x || !ts->prop.max_y) {
35 --
36 2.43.0
37