diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-07-11 10:27:13 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-08-04 18:10:40 -0700 |
commit | 075c777ed7b2a02a9af7345dd55ee0b4794cd5eb (patch) | |
tree | 1389bc4465c8b9689853a2a31216f12e408f3c8e /drivers/input/touchscreen | |
parent | d95f0c4e5b5350c1b0ba0280004449cba79cb2ad (diff) | |
download | lwn-075c777ed7b2a02a9af7345dd55ee0b4794cd5eb.tar.gz lwn-075c777ed7b2a02a9af7345dd55ee0b4794cd5eb.zip |
Input: tsc2004/5 - do not hard code interrupt trigger
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>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/tsc200x-core.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/tsc200x-core.c b/drivers/input/touchscreen/tsc200x-core.c index 39789a27f65b..cd539a2a1dd5 100644 --- a/drivers/input/touchscreen/tsc200x-core.c +++ b/drivers/input/touchscreen/tsc200x-core.c @@ -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; |