mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
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>
This commit is contained in:
committed by
Tom Rini
parent
99cb2b996b
commit
d9b0ac90ba
@@ -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 */
|
||||
|
Reference in New Issue
Block a user