mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
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:
parent
d086d6d803
commit
f46b18f36c
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue