]> git.baikalelectronics.ru Git - kernel.git/commitdiff
Input: auo-pixcir-ts - do not force rising edge interrupt trigger
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 14 Sep 2022 14:14:26 +0000 (07:14 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 16 Sep 2022 13:38:51 +0000 (06:38 -0700)
Instead of hard-coding rising edge as the interrupt trigger, let's rely on
the platform (ACPI, DT) to configure the interrupt properly.

Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20220914141428.2201784-3-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/auo-pixcir-ts.c

index c3bce9fb2c94c4d02a154f8eb49b799d0890208f..4960a50f59eab822004b05a2752e8c1b83ca07f2 100644 (file)
@@ -612,7 +612,7 @@ static int auo_pixcir_probe(struct i2c_client *client,
 
        error = devm_request_threaded_irq(&client->dev, client->irq,
                                          NULL, auo_pixcir_interrupt,
-                                         IRQF_TRIGGER_RISING | IRQF_ONESHOT,
+                                         IRQF_ONESHOT,
                                          input_dev->name, ts);
        if (error) {
                dev_err(&client->dev, "irq %d requested failed, %d\n",