zephyr/drivers/gpio
Martí Bolívar 87e1743ae0 devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH
Make drivers multi-instance wherever possible using DT_INST_FOREACH.
This allows removing DT_HAS_DRV_INST in favor of making drivers just
do the right thing regardless of how many instances there are.

There are a few exceptions:

- SoC drivers which use CMake input files (like i2c_dw.c) or otherwise
  would require more time to convert than I have at the moment. For the
  sake of expediency, just inline the DT_HAS_DRV_INST expansion for
  now in these cases.

- SoC drivers which are explicitly single-instance (like the nRF SAADC
  driver). Again for the sake of expediency, drop a BUILD_ASSERT in
  those cases to make sure the assumption that all supported SoCs have
  at most one available instance is valid, failing fast otherwise.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-05-06 17:35:08 -05:00
..
CMakeLists.txt
gpio_cc13xx_cc26xx.c
gpio_cc32xx.c drivers: cc32xx: use DT_INST_FOREACH to reduce code duplication 2020-04-26 06:05:10 -05:00
gpio_cmsdk_ahb.c
gpio_cmsdk_ahb.h
gpio_dw_registers.h
gpio_dw.c
gpio_dw.h
gpio_esp32.c
gpio_gecko.c
gpio_handlers.c
gpio_ht16k33.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
gpio_imx.c
gpio_intel_apl.c
gpio_litex.c
gpio_lmp90xxx.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
gpio_mchp_xec.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
gpio_mcp23s17.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
gpio_mcp23s17.h
gpio_mcux_igpio.c
gpio_mcux_lpc.c
gpio_mcux.c gpio: mcux: Convert convert to DT_INST defines 2020-04-23 17:07:41 -05:00
gpio_mmio32.c
gpio_nrfx.c drivers: gpio_nrfx: Pass only pins associated with handler 2020-04-24 16:56:10 +02:00
gpio_pca95xx.c devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
gpio_rv32m1.c
gpio_sam.c
gpio_sam0.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
gpio_shell.c
gpio_sifive.c
gpio_stellaris.c
gpio_stm32.c dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
gpio_stm32.h
gpio_sx1509b.c
gpio_utils.h
Kconfig
Kconfig.cc13xx_cc26xx
Kconfig.cc32xx drivers: cc32xx: use DT_INST_FOREACH to reduce code duplication 2020-04-26 06:05:10 -05:00
Kconfig.cmsdk_ahb
Kconfig.dw
Kconfig.esp32
Kconfig.gecko
Kconfig.ht16k33
Kconfig.imx
Kconfig.intel
Kconfig.litex
Kconfig.lmp90xxx
Kconfig.mcp23s17
Kconfig.mcux gpio: mcux: Convert convert to DT_INST defines 2020-04-23 17:07:41 -05:00
Kconfig.mcux_igpio
Kconfig.mcux_lpc
Kconfig.mmio32
Kconfig.nrfx
Kconfig.pca95xx
Kconfig.rv32m1
Kconfig.sam
Kconfig.sam0
Kconfig.sifive
Kconfig.stellaris
Kconfig.stm32
Kconfig.sx1509b
Kconfig.xec drivers: gpio: mchp_xec: Convert to using new device tree macros 2020-04-28 07:43:31 -05:00