Add macros which work with instantiated devices and uclasses, as created at build time by dtoc. Include variants that can be used in data structures.
These are mostly used by dtoc but it is worth documenting them fully for the occasional case where they might come up in user code. Signed-off-by: Simon Glass <s...@chromium.org> --- (no changes since v3) Changes in v3: - Drop the decl() versions of the macros - Add full documentation for the macros include/dm/device-internal.h | 75 ++++++++++++++++++++++++++++++++++++ include/dm/device.h | 22 +++++++++++ include/dm/uclass-internal.h | 49 +++++++++++++++++++++++ include/dm/uclass.h | 31 +++++++++++++++ include/linker_lists.h | 4 +- 5 files changed, 179 insertions(+), 2 deletions(-) Applied to u-boot-dm/next, thanks!