mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-28 07:45:21 +00:00
The suspend and resume hooks in the pwm_driver_api struct are relics from before the current power management infrastructure was in place. The correct way to implement this now is through the device_pm_ops struct, by way of the DEFINE_DEVICE_PM_OPS and DEVICE_AND_API_INIT_PM macros, which make the hooks available through a generic mechanism for all devices, rather than using per-type APIs. Since the existing pwm_suspend() and pwm_resume() functions don't check if the driver_api hooks are NULL, there's now a place holder function to prevent breaking functionality until the hooks are removed. Change-Id: Ib6b03053b483f97a1f7441af5ba51503270b8674 Signed-off-by: Iván Briano <ivan.briano@intel.com> |
||
---|---|---|
.known-issues | ||
arch | ||
boards | ||
doc | ||
drivers | ||
ext | ||
include | ||
kernel | ||
lib | ||
misc | ||
net | ||
samples | ||
scripts | ||
tests | ||
usb | ||
.checkpatch.conf | ||
.gitattributes | ||
.gitignore | ||
.gitreview | ||
.mailmap | ||
defaults.tc | ||
Kbuild | ||
Kconfig | ||
Kconfig.zephyr | ||
LICENSE | ||
MAINTAINERS | ||
Makefile | ||
Makefile.inc | ||
zephyr-env.sh |