zephyr/drivers/entropy
Kumar Gala b4a3880a75 drivers: remove unnecessary use of DEVICE_AND_API_INIT
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>
2020-11-06 09:42:47 -06:00
..
CMakeLists.txt
entropy_cc13xx_cc26xx.c drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
entropy_esp32.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_gecko_trng.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_litex.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_mcux_rng.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_mcux_rnga.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_mcux_trng.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_nrf5.c isr: Normalize usage of device instance through ISR 2020-09-02 13:48:13 +02:00
entropy_rv32m1_trng.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_sam.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
entropy_stm32.c drivers/entropy: stm32: fix error erasing 2020-09-09 14:10:07 +02:00
fake_entropy_native_posix.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.esp32
Kconfig.gecko
Kconfig.litex
Kconfig.mcux
Kconfig.native_posix
Kconfig.nrf5
Kconfig.rv32m1
Kconfig.sam
Kconfig.stm32 drivers: entropy: stm32 full driver rework with software fifo 2020-09-01 13:31:38 +02:00