87e1743ae0
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 | ||
Kconfig | ||
Kconfig.cc13xx_cc26xx | ||
Kconfig.cc1200 | ||
Kconfig.cc2520 | ||
Kconfig.kw41z | ||
Kconfig.mcr20a | ||
Kconfig.nrf5 | ||
Kconfig.rf2xx | ||
ieee802154_cc13xx_cc26xx.c | ||
ieee802154_cc13xx_cc26xx.h | ||
ieee802154_cc1200.c | ||
ieee802154_cc1200.h | ||
ieee802154_cc1200_regs.h | ||
ieee802154_cc1200_rf.h | ||
ieee802154_cc2520.c | ||
ieee802154_cc2520.h | ||
ieee802154_cc2520_regs.h | ||
ieee802154_kw41z.c | ||
ieee802154_mcr20a.c | ||
ieee802154_mcr20a.h | ||
ieee802154_mcr20a_regs.h | ||
ieee802154_nrf5.c | ||
ieee802154_nrf5.h | ||
ieee802154_rf2xx.c | ||
ieee802154_rf2xx.h | ||
ieee802154_rf2xx_iface.c | ||
ieee802154_rf2xx_iface.h | ||
ieee802154_rf2xx_regs.h | ||
ieee802154_uart_pipe.c | ||
ieee802154_uart_pipe.h |