Commit 9f0770ff9c04c43f71bba076203af61ac62e8f3c
Committed by
Alexander Graf
1 parent
32fc2ac381
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
efi_loader: capitalize EFI_LOCATE_SEARCH_TYPE values
Constants should be capitalized. So rename the values of enum efi_locate_search_type. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Showing 2 changed files with 6 additions and 6 deletions Side-by-side Diff
include/efi.h
lib/efi_loader/efi_boottime.c
... | ... | @@ -934,11 +934,11 @@ |
934 | 934 | int i; |
935 | 935 | |
936 | 936 | switch (search_type) { |
937 | - case all_handles: | |
937 | + case ALL_HANDLES: | |
938 | 938 | return 0; |
939 | - case by_register_notify: | |
939 | + case BY_REGISTER_NOTIFY: | |
940 | 940 | return -1; |
941 | - case by_protocol: | |
941 | + case BY_PROTOCOL: | |
942 | 942 | for (i = 0; i < ARRAY_SIZE(efiobj->protocols); i++) { |
943 | 943 | const efi_guid_t *guid = efiobj->protocols[i].guid; |
944 | 944 | if (guid && !guidcmp(guid, protocol)) |