OSDN Git Service

Input: egalax_ts - do not hardcode interrupt trigger
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Sep 2022 04:26:08 +0000 (21:26 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 24 Oct 2022 12:02:26 +0000 (05:02 -0700)
Stop hard-coding interrupt trigger, instead rely on the platform code
to do the right thing, according to DT or ACPI data.

Link: https://lore.kernel.org/r/20220920042608.1865560-4-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/egalax_ts.c

index 9e9b1c5..8333a51 100644 (file)
@@ -203,10 +203,9 @@ static int egalax_ts_probe(struct i2c_client *client,
                             ABS_MT_POSITION_Y, 0, EGALAX_MAX_Y, 0, 0);
        input_mt_init_slots(input_dev, MAX_SUPPORT_POINTS, 0);
 
-       error = devm_request_threaded_irq(&client->dev, client->irq, NULL,
-                                         egalax_ts_interrupt,
-                                         IRQF_TRIGGER_LOW | IRQF_ONESHOT,
-                                         "egalax_ts", ts);
+       error = devm_request_threaded_irq(&client->dev, client->irq,
+                                         NULL, egalax_ts_interrupt,
+                                         IRQF_ONESHOT, "egalax_ts", ts);
        if (error < 0) {
                dev_err(&client->dev, "Failed to register interrupt\n");
                return error;