zephyr/drivers/spi
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 emul: spi: Add support for SPI emulators 2020-10-05 15:33:00 -04:00
Kconfig emul: spi: Add support for SPI emulators 2020-10-05 15:33:00 -04:00
Kconfig.cc13xx_cc26xx
Kconfig.dw
Kconfig.gecko
Kconfig.litex
Kconfig.mcux_dspi
Kconfig.mcux_flexcomm drivers: spi: Update MCUX Flexcomm driver to add DMA support 2020-10-21 06:26:40 -05:00
Kconfig.mcux_lpspi
Kconfig.nrfx drivers: spi: Kconfig.nrfx: Use RAM buffers for SPIMs by default 2020-09-14 16:02:59 -05:00
Kconfig.oc_simple
Kconfig.rv32m1_lpspi
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.spi_emul emul: spi: Add support for SPI emulators 2020-10-05 15:33:00 -04:00
Kconfig.stm32
Kconfig.xec_qmspi
Kconfig.xlnx
spi_cc13xx_cc26xx.c drivers: remove unnecessary use of DEVICE_AND_API_INIT 2020-11-06 09:42:47 -06:00
spi_context.h drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_dw_regs.h
spi_dw.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_dw.h device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_emul.c emul: spi: Add support for SPI emulators 2020-10-05 15:33:00 -04:00
spi_gecko.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_handlers.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_litespi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_litespi.h
spi_ll_stm32.c drivers/pinmux: stm32: Provide unique API to stm32_dt_pinctrl 2020-10-20 09:09:29 -05:00
spi_ll_stm32.h drivers/spi: stm32: Convert to devicetree pinctrl generation 2020-10-19 10:24:01 -05:00
spi_mcux_dspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_mcux_flexcomm.c drivers: spi: Update MCUX Flexcomm driver to add DMA support 2020-10-21 06:26:40 -05:00
spi_mcux_lpspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_nrfx_spi.c nrfx_spi and nrfx_spim: Fix SPI assert and busy error 2020-10-23 12:53:19 +02:00
spi_nrfx_spim.c nrfx_spi and nrfx_spim: Fix SPI assert and busy error 2020-10-23 12:53:19 +02:00
spi_nrfx_spis.c drivers: spi: nrfx: Restore recently changed spi_context function 2020-09-15 15:59:18 +02:00
spi_oc_simple.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_oc_simple.h
spi_rv32m1_lpspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_sam.c sys: util: Replace MIN(MAX(a, b), c) with CLAMP 2020-11-05 12:12:17 +01:00
spi_sam0.c sys: util: Replace MIN(MAX(a, b), c) with CLAMP 2020-11-05 12:12:17 +01:00
spi_sifive.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_sifive.h
spi_xec_qmspi.c device: Const-ify all device driver instance pointers 2020-09-02 13:48:13 +02:00
spi_xlnx_axi_quadspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00