Now that we can iterate over all the status "okay" devicetree nodes directly using <zephyr/devicetree.h>, use that along with a new helper macro to pre-declare all possible struct devices. Unlike the previous implementation, which declared devices even for disabled nodes, we restrict the new mechanism to only declaring devices for status "okay" nodes. This keeps drivers honest by not pre-declaring devices for disabled nodes, which should not be allocated in the first place. Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| zephyr | ||