]> git.baikalelectronics.ru Git - uboot.git/commitdiff
efi_loader: describe term_get_char()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 3 Mar 2023 21:04:26 +0000 (22:04 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 13 Mar 2023 12:56:14 +0000 (13:56 +0100)
Add a function description.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_console.c

index 43176309077caa78d6158f463a4a98f29f4f146f..a2d137d7a9e15408facd6bdfdd8061df1e5118e8 100644 (file)
@@ -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;