From b6c54204617c37e305c4389ece4f7af116485f92 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 8 Sep 2016 17:10:47 +0200 Subject: ShellPkg/UefiHandleParsingLib: fix IN/OUT notation in child ctrlr parsing "MatchingHandleCount" is an output parameter of ParseHandleDatabaseForChildControllers(). Cc: Jaben Carsey Cc: Ruiyu Ni Cc: Tapan Shah Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek Reviewed-by: Jaben Carsey Reviewed-by: Tapan Shah --- ShellPkg/Include/Library/HandleParsingLib.h | 4 ++-- ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ShellPkg/Include/Library/HandleParsingLib.h b/ShellPkg/Include/Library/HandleParsingLib.h index 441f65fffe..79dcc9cc5a 100644 --- a/ShellPkg/Include/Library/HandleParsingLib.h +++ b/ShellPkg/Include/Library/HandleParsingLib.h @@ -306,7 +306,7 @@ ParseHandleDatabaseForChildDevices( Gets handles for any child controllers of the passed in controller. @param[in] ControllerHandle The handle of the "parent controller". - @param[in] MatchingHandleCount The pointer to the number of handles in + @param[out] MatchingHandleCount The pointer to the number of handles in MatchingHandleBuffer on return. @param[out] MatchingHandleBuffer The buffer containing handles on a successful return. @@ -317,7 +317,7 @@ EFI_STATUS EFIAPI ParseHandleDatabaseForChildControllers( IN CONST EFI_HANDLE ControllerHandle, - IN UINTN *MatchingHandleCount, + OUT UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer OPTIONAL ); diff --git a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c index 3fb55df8cc..e11a3cccea 100644 --- a/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c +++ b/ShellPkg/Library/UefiHandleParsingLib/UefiHandleParsingLib.c @@ -2723,7 +2723,7 @@ ParseHandleDatabaseByRelationship ( Gets handles for any child controllers of the passed in controller. @param[in] ControllerHandle The handle of the "parent controller" - @param[in] MatchingHandleCount Pointer to the number of handles in + @param[out] MatchingHandleCount Pointer to the number of handles in MatchingHandleBuffer on return. @param[out] MatchingHandleBuffer Buffer containing handles on a successful return. @@ -2735,7 +2735,7 @@ EFI_STATUS EFIAPI ParseHandleDatabaseForChildControllers( IN CONST EFI_HANDLE ControllerHandle, - IN UINTN *MatchingHandleCount, + OUT UINTN *MatchingHandleCount, OUT EFI_HANDLE **MatchingHandleBuffer OPTIONAL ) { -- cgit v1.2.3