diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2018-12-30 21:03:15 +0100 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2019-02-13 09:40:05 +0100 |
commit | 452257a34a2e8d06af37ad30c7dd742920ff6dc5 (patch) | |
tree | 6af88c2b7157b66216bc2248e43a62c095a17dbe /include/efi_api.h | |
parent | 0bda81bfdc5c67341e51c2b412a2271099861e6e (diff) | |
download | u-boot-452257a34a2e8d06af37ad30c7dd742920ff6dc5.tar.gz |
efi_loader: efi_set_variable use const void *
The SetVariable() runtime service does not change the data passed to it.
So mark the parameter as constant.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r-- | include/efi_api.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/efi_api.h b/include/efi_api.h index 83fd12b685..1d3774729d 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -230,7 +230,8 @@ struct efi_runtime_services { efi_status_t (EFIAPI *set_variable)(u16 *variable_name, const efi_guid_t *vendor, u32 attributes, - efi_uintn_t data_size, void *data); + efi_uintn_t data_size, + const void *data); efi_status_t (EFIAPI *get_next_high_mono_count)( uint32_t *high_count); void (EFIAPI *reset_system)(enum efi_reset_type reset_type, |