Commit 9f0770ff9c04c43f71bba076203af61ac62e8f3c

Authored by Heinrich Schuchardt
Committed by Alexander Graf
1 parent 32fc2ac381

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

... ... @@ -227,9 +227,9 @@
227 227 };
228 228  
229 229 enum efi_locate_search_type {
230   - all_handles,
231   - by_register_notify,
232   - by_protocol
  230 + ALL_HANDLES,
  231 + BY_REGISTER_NOTIFY,
  232 + BY_PROTOCOL
233 233 };
234 234  
235 235 struct efi_open_protocol_info_entry {
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))