diff options
| author | Michal Simek <[email protected]> | 2026-02-11 16:56:21 +0100 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2026-02-15 09:15:28 +0100 |
| commit | 4fcc248c943b10889789f23b372ce37e06614a84 (patch) | |
| tree | 5f9b9fcb000e3cda317c294bfcb5959f887494e7 /lib/efi_loader | |
| parent | 38ea3bfc6506174c3ae219b33171db2c2098afd1 (diff) | |
efi_var: Unify read/write access helper function
efi_var_to/from_file() suggest method where variables are placed. But there
is no reason for it and generic name can be used to wire also different
locations for variables.
Signed-off-by: Michal Simek <[email protected]>
Reviewed-by: Ilias Apalodimas <[email protected]>
Tested-by: Neil Armstrong <[email protected]> # on AML-S905D3-CC
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'lib/efi_loader')
| -rw-r--r-- | lib/efi_loader/efi_var_file.c | 8 | ||||
| -rw-r--r-- | lib/efi_loader/efi_variable.c | 4 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/efi_loader/efi_var_file.c b/lib/efi_loader/efi_var_file.c index 4061a463b58..9cda38f319e 100644 --- a/lib/efi_loader/efi_var_file.c +++ b/lib/efi_loader/efi_var_file.c @@ -43,13 +43,13 @@ static efi_status_t __maybe_unused efi_set_blk_dev_to_system_partition(void) } /** - * efi_var_to_file() - save non-volatile variables as file + * efi_var_to_storage() - save non-volatile variables as file * * File ubootefi.var is created on the EFI system partion. * * Return: status code */ -efi_status_t efi_var_to_file(void) +efi_status_t efi_var_to_storage(void) { efi_status_t ret; struct efi_var_file *buf; @@ -85,7 +85,7 @@ out: } /** - * efi_var_from_file() - read variables from file + * efi_var_from_storage() - read variables from file * * File ubootefi.var is read from the EFI system partitions and the variables * stored in the file are created. @@ -98,7 +98,7 @@ out: * * Return: status code */ -efi_status_t efi_var_from_file(void) +efi_status_t efi_var_from_storage(void) { struct efi_var_file *buf; loff_t len; diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c index 6e45134c61b..8512bc20f11 100644 --- a/lib/efi_loader/efi_variable.c +++ b/lib/efi_loader/efi_variable.c @@ -404,7 +404,7 @@ efi_status_t efi_set_variable_int(const u16 *variable_name, if (IS_ENABLED(CONFIG_EFI_VARIABLE_NO_STORE)) return EFI_SUCCESS; - efi_var_to_file(); + efi_var_to_storage(); } return EFI_SUCCESS; @@ -599,7 +599,7 @@ efi_status_t efi_init_variables(void) return ret; if (!IS_ENABLED(CONFIG_EFI_VARIABLE_NO_STORE)) { - ret = efi_var_from_file(); + ret = efi_var_from_storage(); if (ret != EFI_SUCCESS) return ret; } |
