zephyr/tests/lib
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
..
c_lib cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
cmsis_dsp tests: lib: cmsis_dsp: transform: Provide RIFFT bug workaround 2020-05-04 16:55:55 -05:00
devicetree devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
fdtable cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
gui/lvgl cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
heap cmake: Updating test samples to use find_package(Zephyr) 2020-04-20 15:46:43 +02:00
json json: fix buffer overrun in encoding helper 2020-04-28 15:06:45 -04:00
mem_alloc cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
notify cmake: Updating test samples to use find_package(Zephyr) 2020-04-20 15:46:43 +02:00
onoff sys: onoff: redesign to meet changed needs 2020-04-22 16:52:47 +02:00
ringbuffer cmake: use find_package to locate Zephyr 2020-03-27 16:23:46 +01:00
sprintf kconfig: Rename CONFIG_FLOAT to CONFIG_FPU 2020-04-27 19:03:44 +02:00