diff mbox series

[5/6] Input: tsc2004/5 - respect "wakeup-source" property

Message ID 20240711172719.1248373-5-dmitry.torokhov@gmail.com
State Accepted
Commit f46b18f36c01ee2c8f52b1adabd5a38202a6089f
Headers show
Series [1/6] Input: tsc2004/5 - fix handling of VIO power supply | expand

Commit Message

Dmitry Torokhov July 11, 2024, 5:27 p.m. UTC
Do not mark the device as wakeup-enabled by default, respect the
standard "wakeup-source" property.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
---
 drivers/input/touchscreen/tsc200x-core.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/input/touchscreen/tsc200x-core.c b/drivers/input/touchscreen/tsc200x-core.c
index cd60bba11c56..90a4ace22395 100644
--- a/drivers/input/touchscreen/tsc200x-core.c
+++ b/drivers/input/touchscreen/tsc200x-core.c
@@ -562,7 +562,8 @@  int tsc200x_probe(struct device *dev, int irq, const struct input_id *tsc_id,
 		return error;
 	}
 
-	device_init_wakeup(dev, true);
+	device_init_wakeup(dev,
+			   device_property_read_bool(dev, "wakeup-source"));
 
 	return 0;
 }