diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2023-01-28 15:18:24 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2023-02-05 20:36:54 +0000 |
commit | ffdf10fb9cf13464801f2d78d3e1470201394812 (patch) | |
tree | 247699d10b6e6823e8d177195b77c42e18ddcb5f | |
parent | 52c28b99034bd32c86e6c058f68cfbf11c8f76c3 (diff) | |
download | src-ffdf10fb9cf13464801f2d78d3e1470201394812.tar.gz src-ffdf10fb9cf13464801f2d78d3e1470201394812.zip |
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
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/device.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/device.h b/sys/compat/linuxkpi/common/include/linux/device.h index 92e7e6772fbd..32dc7a30769c 100644 --- a/sys/compat/linuxkpi/common/include/linux/device.h +++ b/sys/compat/linuxkpi/common/include/linux/device.h @@ -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) |