]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Input: tsc2004/5 - do not hard code interrupt trigger
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 11 Jul 2024 17:27:13 +0000 (10:27 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 5 Aug 2024 01:10:40 +0000 (18:10 -0700)
Instead of hard-coding interrupt trigger rely on ACPI/DT/board code
to set it up appropriately.

Link: https://lore.kernel.org/r/20240711172719.1248373-2-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/tsc200x-core.c

index 39789a27f65b20d3ae54f8fb89e7a19b1fb16cf3..cd539a2a1dd5015790b423d8fed753cd6f51ac64 100644 (file)
@@ -542,10 +542,8 @@ int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id,
        /* Ensure the touchscreen is off */
        tsc200x_stop_scan(ts);
 
-       error = devm_request_threaded_irq(dev, irq, NULL,
-                                         tsc200x_irq_thread,
-                                         IRQF_TRIGGER_RISING | IRQF_ONESHOT,
-                                         "tsc200x", ts);
+       error = devm_request_threaded_irq(dev, irq, NULL, tsc200x_irq_thread,
+                                         IRQF_ONESHOT, "tsc200x", ts);
        if (error) {
                dev_err(dev, "Failed to request irq, err: %d\n", error);
                return error;