]> git.dujemihanovic.xyz Git - linux.git/commitdiff
input/touchscreen: imagis: Correct the maximum touch area value
authorMarkuss Broks <markuss.broks@gmail.com>
Wed, 4 May 2022 15:24:03 +0000 (18:24 +0300)
committerDuje Mihanović <duje.mihanovic@skole.hr>
Wed, 27 Dec 2023 12:32:22 +0000 (13:32 +0100)
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>
drivers/input/touchscreen/imagis.c

index 07111ca2445561702980070c2afe0655919bd808..e67fd3011027816b77950b4d6e0cbd7fb0cca8ac 100644 (file)
@@ -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) {