diff mbox series

[U-Boot,09/18] efi_loader: argument of efi_search_obj should be const

Message ID 20171026172559.26639-10-xypron.glpk@gmx.de
State Accepted
Commit 085d07cd3b8c9a12d5a02c13b56ab92436c062ba
Delegated to: Alexander Graf
Headers show
Series efi_loader: refactor protocols management | expand

Commit Message

Heinrich Schuchardt Oct. 26, 2017, 5:25 p.m. UTC
The argument of efi_search_obj is not changed so it should
be marked as const.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 include/efi_loader.h          | 2 +-
 lib/efi_loader/efi_boottime.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/include/efi_loader.h b/include/efi_loader.h
index f42dceaf51..a5aae1b87e 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -195,7 +195,7 @@  void efi_set_bootdev(const char *dev, const char *devnr, const char *path);
 /* Create handle */
 efi_status_t efi_create_handle(void **handle);
 /* Call this to validate a handle and find the EFI object for it */
-struct efi_object *efi_search_obj(void *handle);
+struct efi_object *efi_search_obj(const void *handle);
 /* Call this to create an event */
 efi_status_t efi_create_event(uint32_t type, efi_uintn_t notify_tpl,
 			      void (EFIAPI *notify_function) (
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index a87e23cd8e..c96c2be7b9 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -690,7 +690,7 @@  static efi_status_t EFIAPI efi_check_event(struct efi_event *event)
  * @handle	handle to find
  * @return	EFI object
  */
-struct efi_object *efi_search_obj(void *handle)
+struct efi_object *efi_search_obj(const void *handle)
 {
 	struct efi_object *efiobj;