]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
Input: cyttsp - flag the device properly
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 10 Apr 2021 07:34:58 +0000 (00:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 10 Apr 2021 07:46:10 +0000 (00:46 -0700)
This device is certainly a very simple touchscreen so
we set INPUT_MT_DIRECT.

Reviewed-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20210408131153.3446138-9-linus.walleij@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/cyttsp_core.c

index 3d605f4cbed9ea910a4687232e21b863e7c08f80..106dd4962785112a41368c4b6608e08da7d6cef3 100644 (file)
@@ -657,7 +657,7 @@ struct cyttsp *cyttsp_probe(const struct cyttsp_bus_ops *bus_ops,
 
        touchscreen_parse_properties(input_dev, true, NULL);
 
-       error = input_mt_init_slots(input_dev, CY_MAX_ID, 0);
+       error = input_mt_init_slots(input_dev, CY_MAX_ID, INPUT_MT_DIRECT);
        if (error) {
                dev_err(dev, "Unable to init MT slots.\n");
                return ERR_PTR(error);