Commit f46b18f3 authored by Dmitry Torokhov's avatar Dmitry Torokhov

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.comSigned-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d086d6d8
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment