zephyr/include
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
..
app_memory
arch arch: arc: remove MPU_STACK_GUARD for ARC_MPU_VER 2 2020-05-06 12:51:05 -07:00
audio
bluetooth Bluetooth: host: Only persist advertising with bt_le_adv_start API 2020-05-06 17:08:49 +03:00
canbus canbus: Convert canbus driver and subsys to new timeout API 2020-05-06 10:19:13 +02:00
cmsis_rtos_v1
cmsis_rtos_v2
console documentation: fix wrong recommendation for millisecond timeouts 2020-04-30 18:26:26 +02:00
crypto
data
debug
devicetree can: dts: Convert can-primary alias to zephyr,can-primary chosen prop 2020-04-29 14:27:31 -05:00
dfu dfu: use stream_flash in flash_img 2020-05-06 11:14:00 +02:00
disk
display
drivers canbus: Convert canbus driver and subsys to new timeout API 2020-05-06 10:19:13 +02:00
dt-bindings stm32_pinctrl: remove duplicate definition 2020-05-04 19:49:14 +02:00
fs
linker dts: Rename DT_HAS_NODE macro to DT_HAS_NODE_STATUS_OKAY 2020-05-06 05:25:41 -05:00
logging logging: Replace MACRO_MAP with FOR_EACH 2020-05-06 14:30:18 +02:00
mgmt
net canbus: Convert canbus driver and subsys to new timeout API 2020-05-06 10:19:13 +02:00
posix
power
random
settings
shell
stats
storage storage: add stream flash library 2020-05-06 11:14:00 +02:00
sys sys: util: Add missing doxygen tags 2020-05-06 14:30:18 +02:00
toolchain
tracing
usb
zephyr
cache.h
device.h
devicetree.h devicetree: replace DT_HAS_DRV_INST with DT_INST_FOREACH 2020-05-06 17:35:08 -05:00
exc_handle.h
fatal.h
generated_dts_board.h
init.h
irq_nextlevel.h
irq_offload.h
irq.h
kernel_includes.h
kernel_structs.h
kernel_version.h
kernel.h kernel: Fix k_thread_resource_pool_assign() documentation 2020-05-04 14:49:28 -07:00
mempool_heap.h
mempool_sys.h
ptp_clock.h
sched_priq.h
shared_irq.h
spinlock.h
sw_isr_table.h
sys_clock.h
syscall_handler.h
syscall.h
timeout_q.h
toolchain.h
wait_q.h
zephyr.h