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: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.dw kconfig: Remove redundant SPI_DW dep on SPI_DW_ACCESS_WORD_ONLY 2020-02-08 09:58:33 +02:00
Kconfig.gecko kconfig: Turn pointless 'menuconfig's into 'config's 2020-01-24 21:30:17 -05:00
Kconfig.litex kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.mcux_dspi kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
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: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
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: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.rv32m1_lpspi kconfig: Fix up newly-introduced copy-pasted headers 2019-11-19 15:25:08 -05:00
Kconfig.sam drivers: spi: spi_sam: rework device tree support 2020-04-25 09:29:54 -05:00
Kconfig.sam0 kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.sifive kconfig: Replace non-defconfig single-symbol 'if's with 'depends on' 2020-02-12 10:32:34 -06:00
Kconfig.spi_emul emul: spi: Add support for SPI emulators 2020-10-05 15:33:00 -04:00
Kconfig.stm32 drivers: spi: Enable dma transfer for SPI on stm32 2020-05-04 09:46:07 -05:00
Kconfig.xec_qmspi kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.xlnx drivers: spi: add driver for the Xilinx AXI Quad SPI IP 2020-08-26 12:32:27 +02:00
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 drivers: spi_dw: add WORD only access support 2019-09-17 20:40:38 +08:00
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 device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
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 device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
spi_rv32m1_lpspi.c drivers: Manual const-ification of device driver instance 2020-09-02 13:48:13 +02:00
spi_sam0.c sys: util: Replace MIN(MAX(a, b), c) with CLAMP 2020-11-05 12:12:17 +01:00
spi_sam.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 device: Apply driver_api/data attributes rename everywhere 2020-08-11 19:30:53 +02:00
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