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 <dmitry.torokhov@gmail.com>
This commit is contained in:
Dmitry Torokhov 2024-07-11 10:27:16 -07:00
parent d086d6d803
commit f46b18f36c

View file

@ -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;
}