summaryrefslogtreecommitdiff
path: root/include/efi_loader.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-09-09 07:12:14 +0200
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-10-25 21:13:06 +0200
commitd47671c631c3f3f3bbf0a33f6bf8afeebfe8c091 (patch)
tree1539f8fbd8cda2d00ada509b904dd88b2324aa3e /include/efi_loader.h
parent7a6fb28c8e4b03bc37b05936ae5fa4c16c278520 (diff)
downloadu-boot-d47671c631c3f3f3bbf0a33f6bf8afeebfe8c091.tar.gz
u-boot-d47671c631c3f3f3bbf0a33f6bf8afeebfe8c091.tar.bz2
u-boot-d47671c631c3f3f3bbf0a33f6bf8afeebfe8c091.zip
efi_loader: treat UEFI variable name as const
UEFI variable names are typically constants and hence should be defined as const. Unfortunately some of our API functions do not define the parameters for UEFI variable names as const. This requires unnecessary conversions. Adjust parameters of several internal functions to tre UEFI variable names as const. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r--include/efi_loader.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 3e5ac38042..f6d65a6c0c 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -818,7 +818,7 @@ efi_status_t EFIAPI efi_query_variable_info(
u64 *remaining_variable_storage_size,
u64 *maximum_variable_size);
-void *efi_get_var(u16 *name, const efi_guid_t *vendor, efi_uintn_t *size);
+void *efi_get_var(const u16 *name, const efi_guid_t *vendor, efi_uintn_t *size);
/*
* See section 3.1.3 in the v2.7 UEFI spec for more details on