linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Input: tsc200x: Drop hard-coded IRQ edge
@ 2021-05-09 23:38 Linus Walleij
  2021-05-10  0:22 ` Dmitry Torokhov
  0 siblings, 1 reply; 9+ messages in thread
From: Linus Walleij @ 2021-05-09 23:38 UTC (permalink / raw)
  To: Dmitry Torokhov, linux-input; +Cc: Linus Walleij

This edge setting should come from the device tree not
the driver. Also, most device trees sets this to the
falling edge, which is contradictory to what is hardcoded.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
 drivers/input/touchscreen/tsc200x-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/touchscreen/tsc200x-core.c b/drivers/input/touchscreen/tsc200x-core.c
index ce2fe30d6b8a..5f0ce663a2dc 100644
--- a/drivers/input/touchscreen/tsc200x-core.c
+++ b/drivers/input/touchscreen/tsc200x-core.c
@@ -540,7 +540,7 @@ int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id,
 
 	error = devm_request_threaded_irq(dev, irq, NULL,
 					  tsc200x_irq_thread,
-					  IRQF_TRIGGER_RISING | IRQF_ONESHOT,
+					  IRQF_ONESHOT,
 					  "tsc200x", ts);
 	if (error) {
 		dev_err(dev, "Failed to request irq, err: %d\n", error);
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-05-11 23:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-09 23:38 [PATCH] Input: tsc200x: Drop hard-coded IRQ edge Linus Walleij
2021-05-10  0:22 ` Dmitry Torokhov
2021-05-10  9:29   ` Linus Walleij
2021-05-10 13:41     ` Tony Lindgren
2021-05-10 13:46       ` H. Nikolaus Schaller
2021-05-11  0:38     ` Dmitry Torokhov
2021-05-11 18:24       ` Adam Ford
2021-05-11 21:09         ` Dmitry Torokhov
2021-05-11 23:57           ` Adam Ford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).