forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kernel: add CONFIG_DEVICE_DT_METADATA and helpers
This option allows you to look up a struct device from any of the node labels that were attached to the devicetree node used to create the device, etc. This is helpful because node labels are a much more human-friendly set of unique identifiers than the node names we are currently relying on for use with device_get_binding(). Adding this infrastructure in the device core allows anyone to make use of it without having to replicate node label storage and search functions in various places in the tree. The main use case, however, is for looking up devices by node label in the shell. Since there is a footprint penalty associated with storing the node label metadata, leave this option disabled by default. Signed-off-by: Martí Bolívar <[email protected]>
- Loading branch information
1 parent
74abb2b
commit 15c9d37
Showing
3 changed files
with
190 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters