diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2020-12-21 15:30:04 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-15 22:38:00 +0300 |
commit | ae69738d3b311d285db83fde37c0eaa2b7b6c2b4 (patch) | |
tree | 4e7784c040059861406f6be018045f36618b93d6 | |
parent | 3232487daf7ca7c50ec7c964c66db56d591725a2 (diff) | |
download | u-boot-ae69738d3b311d285db83fde37c0eaa2b7b6c2b4.tar.xz |
console: Provide a documentation for console_search_dev()
Provide a documentation for console_search_dev().
Suggested-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r-- | include/console.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index bb186e7be0..7e628c0cf8 100644 --- a/include/console.h +++ b/include/console.h @@ -25,6 +25,16 @@ void clear_ctrlc(void); /* clear the Control-C condition */ int disable_ctrlc(int); /* 1 to disable, 0 to enable Control-C detect */ int confirm_yesno(void); /* 1 if input is "y", "Y", "yes" or "YES" */ +/** + * console_search_dev() - search for stdio device with given flags and name + * @flags: device flags as per input/output/system + * @name: device name + * + * Iterates over registered STDIO devices and match them with given @flags + * and @name. + * + * @return pointer to the &struct stdio_dev if found, or NULL otherwise + */ struct stdio_dev *console_search_dev(int flags, const char *name); #ifdef CONFIG_CONSOLE_RECORD |