stdio: Introduce a new helper stdio_file_to_flags()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 11 Feb 2021 15:09:36 +0000 (17:09 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 16 Feb 2021 16:16:07 +0000 (11:16 -0500)
commitd9b0ac90baf499d215462ed7afffbfd22a58340b
treeaf6936c29035a93b11be0499cf18fe0d3dde1a2e
parent99cb2b996bd649d98069a95941beaaade0a4447a
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>
common/stdio.c
include/stdio_dev.h