efi/libstub: Fix efi_set_event_at() parameter documentation
PATCH 1/1 efi/libstub: Fix efi_set_event_at() parameter documentation
efi_set_event_at() documents ids although its array index argument is named idx. This produces missing and excess parameter warnings.
Match the argument name and fix the adjacent spelling of array.
Fixes 8c0a839c2bcc ("efi/libstub: Descriptions for stub helper functions")
Assisted-by LLM
Signed-off-by Karl Mehltretter <[email protected]>
--- drivers/firmware/efi/libstub/efistub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/firmware/efi/libstub/efistub.h +2 -2
@@ -224,8 +224,8 @@ typedef void (__efiapi *efi_event_notify_t)(efi_event_t, void *);* efi_set_event_at() - add event to events array * * @events: array of UEFI events -* @ids: index where to put the event in the array -* @event: event to add to the aray +* @idx: index where to put the event in the array +* @event: event to add to the array * * boottime->wait_for_event() takes an array of events as input. * Provide a helper to set it up correctly for mixed mode.
base-commit: 50d05c7c76c96b90462f24debacca971d2e86713
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 28 lines · Karl Mehltretter
efi_set_event_at()documents ids although its array index argument is named idx. This produces missing and excess parameter warnings.Match the argument name and fix the adjacent spelling of array.
Fixes 8c0a839c2bcc ("efi/libstub: Descriptions for stub helper functions")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>--- drivers/firmware/efi/libstub/efistub.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/firmware/efi/libstub/efistub.h +2
-2@@ -224,8 +224,8 @@ typedef void (__efiapi *efi_event_notify_t)(efi_event_t, void *); * efi_set_event_at() - add event to events array * * @events: array of UEFI events - * @ids: index where to put the event in the array - * @event: event to add to the aray + * @idx: index where to put the event in the array + * @event: event to add to the array * * boottime->wait_for_event() takes an array of events as input.
Quoted 2 lines
* Provide a helper to set it up correctly for mixed mode.
Queued up in efi/next - thanks.