From: Heinrich Schuchardt Date: Fri, 3 Mar 2023 21:04:26 +0000 (+0100) Subject: efi_loader: describe term_get_char() X-Git-Tag: baikal/mips/sdk5.8.2~5^2~22^2 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=4ba52841983810917060fe1973fd1a012d335403;p=uboot.git efi_loader: describe term_get_char() Add a function description. Signed-off-by: Heinrich Schuchardt Reviewed-by: Ilias Apalodimas --- diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c index 4317630907..a2d137d7a9 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;