mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-20 01:35:23 +00:00
For drivers that support CONFIG_DEVICE_POWER_MANAGEMENT there are some
cases that look like:
#ifdef CONFIG_DEVICE_POWER_MANAGEMENT
DEVICE_DEFINE()
#else
DEVICE_AND_API_INIT()
#endif
There is no need to special case this as the pm_control_fn argument to
DEVICE_DEFINE will just be ignored in the
!CONFIG_DEVICE_POWER_MANAGEMENT case. So we can cleanup the code a
little and remove the #else cases for the drivers that do this.
Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
|
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| entropy_cc13xx_cc26xx.c | ||
| entropy_esp32.c | ||
| entropy_gecko_trng.c | ||
| entropy_handlers.c | ||
| entropy_litex.c | ||
| entropy_mcux_rng.c | ||
| entropy_mcux_rnga.c | ||
| entropy_mcux_trng.c | ||
| entropy_nrf5.c | ||
| entropy_rv32m1_trng.c | ||
| entropy_sam.c | ||
| entropy_stm32.c | ||
| fake_entropy_native_posix.c | ||
| Kconfig | ||
| Kconfig.cc13xx_cc26xx | ||
| Kconfig.esp32 | ||
| Kconfig.gecko | ||
| Kconfig.litex | ||
| Kconfig.mcux | ||
| Kconfig.native_posix | ||
| Kconfig.nrf5 | ||
| Kconfig.rv32m1 | ||
| Kconfig.sam | ||
| Kconfig.stm32 | ||