mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: export efi_get_configuration_table
In multiple places we need a function to find an EFI configuration table. Rename get_config_table() to efi_get_configuration_table() and export it. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
parent
3a99d05a39
commit
fa0772180e
2 changed files with 5 additions and 3 deletions
|
@ -380,12 +380,12 @@ done:
|
|||
}
|
||||
|
||||
/**
|
||||
* get_config_table() - get configuration table
|
||||
* efi_get_configuration_table() - get configuration table
|
||||
*
|
||||
* @guid: GUID of the configuration table
|
||||
* Return: pointer to configuration table or NULL
|
||||
*/
|
||||
static void *get_config_table(const efi_guid_t *guid)
|
||||
void *efi_get_configuration_table(const efi_guid_t *guid)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
|
@ -430,7 +430,7 @@ efi_status_t efi_install_fdt(void *fdt)
|
|||
uintptr_t fdt_addr;
|
||||
|
||||
/* Look for device tree that is already installed */
|
||||
if (get_config_table(&efi_guid_fdt))
|
||||
if (efi_get_configuration_table(&efi_guid_fdt))
|
||||
return EFI_SUCCESS;
|
||||
/* Check if there is a hardware device tree */
|
||||
fdt_opt = env_get("fdt_addr");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue