mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-09 19:58:24 +00:00
The suspend and resume hooks in the spi_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 spi_suspend() and spi_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: I48287c58e9a8649d3e1be7547e3d0d293c84327a 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 |