[PATCH 1/1] efi_loader: describe term_get_char()

Ilias Apalodimas ilias.apalodimas at linaro.org
Tue Mar 7 11:07:22 CET 2023


On Fri, 3 Mar 2023 at 23:06, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> Add a function description.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>  lib/efi_loader/efi_console.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
>
> diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
> index 4317630907..d970b667a6 100644
> --- a/lib/efi_loader/efi_console.c
> +++ b/lib/efi_loader/efi_console.c
> @@ -77,6 +77,14 @@ static struct simple_text_output_mode efi_con_mode = {
>         .cursor_visible = 1,
>  };
>
> +/**
> + * term_get_char() - read a character from the console
> + *
> + * Wait for up to 100 ms to read a character from the console.
> + *
> + * @c:         pointer to the buffer to receive the character
> + * Return:     0 on success, 1 otherwise
> + */
>  static int term_get_char(s32 *c)
>  {
>         u64 timeout;
> --
> 2.39.2
>

Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>


More information about the U-Boot mailing list