Skip to content
Commit 7cb7dd27 authored by Ioannis Papamanoglou's avatar Ioannis Papamanoglou Committed by Kumar Gala
Browse files

devicetree.h: Add macro DT_INST_FOREACH



With this macro device drivers can call macros and functions
on every device instance compatible to that driver.
This makes it possible to make drivers agnostic to the
potential counts of instances.
Sidenote: Introduces helper macro DT_CALL_WITH_ARG.

Signed-off-by: default avatarIoannis Papamanoglou <iopapamanoglou@gmail.com>
parent f56f5fab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment