From: Dmitry Torokhov Date: Thu, 11 Jul 2024 17:27:16 +0000 (-0700) Subject: Input: tsc2004/5 - respect "wakeup-source" property X-Git-Tag: v6.12-rc1~65^2~2^2~59 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f46b18f36c01ee2c8f52b1adabd5a38202a6089f;p=thirdparty%2Flinux.git Input: tsc2004/5 - respect "wakeup-source" property Do not mark the device as wakeup-enabled by default, respect the standard "wakeup-source" property. Link: https://lore.kernel.org/r/20240711172719.1248373-5-dmitry.torokhov@gmail.com Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/tsc200x-core.c b/drivers/input/touchscreen/tsc200x-core.c index cd60bba11c562..90a4ace223953 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; }