Skip to content
Snippets Groups Projects
Commit 9f0770ff authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Alexander Graf
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
parent 32fc2ac3
Branches
Tags
No related merge requests found
......@@ -227,9 +227,9 @@ struct efi_time_cap {
};
enum efi_locate_search_type {
all_handles,
by_register_notify,
by_protocol
ALL_HANDLES,
BY_REGISTER_NOTIFY,
BY_PROTOCOL
};
struct efi_open_protocol_info_entry {
......
......@@ -934,11 +934,11 @@ static int efi_search(enum efi_locate_search_type search_type,
int i;
switch (search_type) {
case all_handles:
case ALL_HANDLES:
return 0;
case by_register_notify:
case BY_REGISTER_NOTIFY:
return -1;
case by_protocol:
case BY_PROTOCOL:
for (i = 0; i < ARRAY_SIZE(efiobj->protocols); i++) {
const efi_guid_t *guid = efiobj->protocols[i].guid;
if (guid && !guidcmp(guid, protocol))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment