mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 17:23:11 +00:00
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> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
gpio_cc13xx_cc26xx.c | ||
gpio_cc32xx.c | ||
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 | ||
gpio_imx.c | ||
gpio_intel_apl.c | ||
gpio_litex.c | ||
gpio_lmp90xxx.c | ||
gpio_mchp_xec.c | ||
gpio_mcp23s17.c | ||
gpio_mcp23s17.h | ||
gpio_mcux_igpio.c | ||
gpio_mcux_lpc.c | ||
gpio_mcux.c | ||
gpio_mmio32.c | ||
gpio_nrfx.c | ||
gpio_pca95xx.c | ||
gpio_rv32m1.c | ||
gpio_sam.c | ||
gpio_sam0.c | ||
gpio_shell.c | ||
gpio_sifive.c | ||
gpio_stellaris.c | ||
gpio_stm32.c | ||
gpio_stm32.h | ||
gpio_sx1509b.c | ||
gpio_utils.h | ||
Kconfig | ||
Kconfig.cc13xx_cc26xx | ||
Kconfig.cc32xx | ||
Kconfig.cmsdk_ahb | ||
Kconfig.dw | ||
Kconfig.esp32 | ||
Kconfig.gecko | ||
Kconfig.ht16k33 | ||
Kconfig.imx | ||
Kconfig.intel | ||
Kconfig.litex | ||
Kconfig.lmp90xxx | ||
Kconfig.mcp23s17 | ||
Kconfig.mcux | ||
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 |