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>
This commit is contained in:
Heinrich Schuchardt 2017-11-06 21:17:42 +01:00 committed by Alexander Graf
parent 32fc2ac381
commit 9f0770ff9c
2 changed files with 6 additions and 6 deletions

View file

@ -227,9 +227,9 @@ struct efi_time_cap {
}; };
enum efi_locate_search_type { enum efi_locate_search_type {
all_handles, ALL_HANDLES,
by_register_notify, BY_REGISTER_NOTIFY,
by_protocol BY_PROTOCOL
}; };
struct efi_open_protocol_info_entry { struct efi_open_protocol_info_entry {

View file

@ -934,11 +934,11 @@ static int efi_search(enum efi_locate_search_type search_type,
int i; int i;
switch (search_type) { switch (search_type) {
case all_handles: case ALL_HANDLES:
return 0; return 0;
case by_register_notify: case BY_REGISTER_NOTIFY:
return -1; return -1;
case by_protocol: case BY_PROTOCOL:
for (i = 0; i < ARRAY_SIZE(efiobj->protocols); i++) { for (i = 0; i < ARRAY_SIZE(efiobj->protocols); i++) {
const efi_guid_t *guid = efiobj->protocols[i].guid; const efi_guid_t *guid = efiobj->protocols[i].guid;
if (guid && !guidcmp(guid, protocol)) if (guid && !guidcmp(guid, protocol))