From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Wed, 17 Mar 2021 01:28:58 +0000 Subject: [PATCH v4 04/42] dm: core: Add macros to access the new linker lists In-Reply-To: <20210315172537.v4.4.I203d6c2e1211d979289198ee3410009acd7353e6@changeid> References: <20210315172537.v4.4.I203d6c2e1211d979289198ee3410009acd7353e6@changeid> <20210315042553.1932494-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- (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!