linker_lists: Add a function to access a linker list entry
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:21:49 +0000 (12:21 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:18 +0000 (11:11 -0600)
commit72538f4c3ec6a48a32e9798684cd238310e682f2
treeb7b9b837e1f7da641cbf8a1e99369a19d19ed939
parent63c9729a1306ee3fed54923f53b20ce769884a81
linker_lists: Add a function to access a linker list entry

Once declared, you cannot access a linker_list entry since you do not have
a symbol name for it. Add llsym() macro to provide this. This avoids
searching for the symbol at run-time based on name.

An example usage is to declare a driver with U_BOOT_DRIVER(), then obtain
a pointer to that driver later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
include/linker_lists.h