]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
Input: cyttsp5 - fix sensing configuration data structure
authorhrdl <git@hrdl.eu>
Fri, 14 Apr 2023 06:41:13 +0000 (23:41 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Apr 2023 12:30:08 +0000 (14:30 +0200)
commit 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 upstream.

Prior to this patch, the sensing configuration data was not parsed
correctly, breaking detection of max_tch. The vendor driver includes
this field. This change informs the driver about the correct maximum
number of simultaneous touch inputs.

Tested on a Pine64 PineNote with a modified touch screen controller
firmware.

Signed-off-by: hrdl <git@hrdl.eu>
Reviewed-by: Alistair Francis <alistair@alistair23.me>
Link: https://lore.kernel.org/r/20230411211651.3791304-1-git@hrdl.eu
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/touchscreen/cyttsp5.c

index 4a23d623138259269320f8f09f9aecc518a17786..434a37317cbe5b7923cf213f041f94629a3dfbca 100644 (file)
@@ -111,6 +111,7 @@ struct cyttsp5_sensing_conf_data_dev {
        __le16 max_z;
        u8 origin_x;
        u8 origin_y;
+       u8 panel_id;
        u8 btn;
        u8 scan_mode;
        u8 max_num_of_tch_per_refresh_cycle;