mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
LinuxKPI: device: add device_set_wakeup_enable()
Add a dummy device_set_wakeup_enable() which is used for WoWLAN which we do not (yet) support and device_wakeup_enable() which is a wrapper to the former with the enable argument being true. Sponsored by: The FreeBSD Foundation MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D38238
This commit is contained in:
parent
52c28b9903
commit
ffdf10fb9c
1 changed files with 18 additions and 0 deletions
|
|
@ -545,6 +545,24 @@ device_reprobe(struct device *dev)
|
|||
return (-error);
|
||||
}
|
||||
|
||||
static inline void
|
||||
device_set_wakeup_enable(struct device *dev __unused, bool enable __unused)
|
||||
{
|
||||
|
||||
/*
|
||||
* XXX-BZ TODO This is used by wireless drivers supporting WoWLAN which
|
||||
* we currently do not support.
|
||||
*/
|
||||
}
|
||||
|
||||
static inline int
|
||||
device_wakeup_enable(struct device *dev)
|
||||
{
|
||||
|
||||
device_set_wakeup_enable(dev, true);
|
||||
return (0);
|
||||
}
|
||||
|
||||
#define dev_pm_set_driver_flags(dev, flags) do { \
|
||||
} while (0)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue