aboutsummaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-02-11 17:09:36 +0200
committerTom Rini <trini@konsulko.com>2021-02-16 11:16:07 -0500
commitd9b0ac90baf499d215462ed7afffbfd22a58340b (patch)
treeaf6936c29035a93b11be0499cf18fe0d3dde1a2e /include/stdio_dev.h
parent99cb2b996bd649d98069a95941beaaade0a4447a (diff)
downloadu-boot-d9b0ac90baf499d215462ed7afffbfd22a58340b.zip
u-boot-d9b0ac90baf499d215462ed7afffbfd22a58340b.tar.gz
u-boot-d9b0ac90baf499d215462ed7afffbfd22a58340b.tar.bz2
stdio: Introduce a new helper stdio_file_to_flags()
Let's deduplicate existing copies by splitting off to a new helper. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'include/stdio_dev.h')
-rw-r--r--include/stdio_dev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index 109a68d..8fb9a12 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -18,6 +18,8 @@
#define DEV_FLAGS_OUTPUT 0x00000002 /* Device can be used as output console */
#define DEV_FLAGS_DM 0x00000004 /* Device priv is a struct udevice * */
+int stdio_file_to_flags(const int file);
+
/* Device information */
struct stdio_dev {
int flags; /* Device flags: input/output/system */