]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: zforce_ts - switch to using asynchronous probing
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 24 Aug 2024 05:50:42 +0000 (22:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 6 Sep 2024 05:56:47 +0000 (22:56 -0700)
The driver waits for the device to boot, which can be a lengthy
process. Switch it to asynchronous probing to allow more devices
to be probed simultaneously.

Tested-by: Andreas Kemnade <andreas@kemnade.info> # Tolino Shine2HD
Link: https://lore.kernel.org/r/20240824055047.1706392-19-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/zforce_ts.c

index 5df4f9e8fb2ed425df13f63cb83de2beab20159b..4b8c4ebfff96d15257a958b99486b9b407b2c82c 100644 (file)
@@ -850,6 +850,7 @@ static struct i2c_driver zforce_driver = {
                .name   = "zforce-ts",
                .pm     = pm_sleep_ptr(&zforce_pm_ops),
                .of_match_table = of_match_ptr(zforce_dt_idtable),
+               .probe_type = PROBE_PREFER_ASYNCHRONOUS,
        },
        .probe          = zforce_probe,
        .id_table       = zforce_idtable,