From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/5] efi: capitalize enumeration constants
Date: Mon, 10 Oct 2022 08:08:39 +0200 [thread overview]
Message-ID: <20221010060842.2083550-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20221010060842.2083550-1-a.fatoum@pengutronix.de>
Linux coding style is using all caps for constants. Follow this for
enum efi_locate_search_type as well. No functional change.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
drivers/efi/efi-device.c | 10 +++++-----
include/efi.h | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/drivers/efi/efi-device.c b/drivers/efi/efi-device.c
index af5406afa682..6b903723524e 100644
--- a/drivers/efi/efi-device.c
+++ b/drivers/efi/efi-device.c
@@ -91,7 +91,7 @@ static efi_handle_t *efi_find_parent(efi_handle_t *handle)
struct efi_open_protocol_information_entry *entry_buffer;
unsigned long entry_count;
- ret = efi_locate_handle(by_protocol, &efi_device_path_protocol_guid,
+ ret = efi_locate_handle(BY_PROTOCOL, &efi_device_path_protocol_guid,
NULL, &handle_count, &handles);
if (ret)
return NULL;
@@ -245,7 +245,7 @@ void efi_register_devices(void)
struct efi_device **efidevs;
int registered;
- ret = efi_locate_handle(by_protocol, &efi_device_path_protocol_guid,
+ ret = efi_locate_handle(BY_PROTOCOL, &efi_device_path_protocol_guid,
NULL, &handle_count, &handles);
if (ret)
return;
@@ -290,7 +290,7 @@ int efi_connect_all(void)
efi_handle_t *handle_buffer;
int i;
- efiret = BS->locate_handle_buffer(all_handles, NULL, NULL, &handle_count,
+ efiret = BS->locate_handle_buffer(ALL_HANDLES, NULL, NULL, &handle_count,
&handle_buffer);
if (EFI_ERROR(efiret))
return -efi_errno(efiret);
@@ -637,7 +637,7 @@ static int do_efi_protocol_dump(int argc, char **argv)
printf("Searching for:\n");
printf(" %pUl: %s\n", &guid, efi_guid_string(&guid));
- ret = efi_locate_handle(by_protocol, &guid, NULL, &handle_count, &handles);
+ ret = efi_locate_handle(BY_PROTOCOL, &guid, NULL, &handle_count, &handles);
if (!ret)
efi_dump(handles, handle_count);
@@ -653,7 +653,7 @@ static int do_efi_handle_dump(int argc, char *argv[])
if (argc > 1)
return do_efi_protocol_dump(--argc, ++argv);
- ret = efi_locate_handle(all_handles, NULL, NULL, &handle_count, &handles);
+ ret = efi_locate_handle(ALL_HANDLES, NULL, NULL, &handle_count, &handles);
if (!ret)
efi_dump(handles, handle_count);
diff --git a/include/efi.h b/include/efi.h
index 691e3d5493fc..864158259c53 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -175,9 +175,9 @@ typedef struct {
} efi_time_cap_t;
enum efi_locate_search_type {
- all_handles,
- by_register_notify,
- by_protocol
+ ALL_HANDLES,
+ BY_REGISTER_NOTIFY,
+ BY_PROTOCOL
};
struct efi_open_protocol_information_entry {
--
2.30.2
next prev parent reply other threads:[~2022-10-10 6:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-10 6:08 [PATCH 1/5] efi: retire efi_bool_t Ahmad Fatoum
2022-10-10 6:08 ` Ahmad Fatoum [this message]
2022-10-10 6:08 ` [PATCH 3/5] hw_random: add EFI RNG driver Ahmad Fatoum
2022-10-10 6:08 ` [PATCH 4/5] efi: implement and use for_each_efi_config_table Ahmad Fatoum
2022-10-10 6:08 ` [PATCH 5/5] efi: add device tree configuration table support Ahmad Fatoum
2022-10-13 6:33 ` [PATCH 1/5] efi: retire efi_bool_t Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221010060842.2083550-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox