summaryrefslogtreecommitdiff
path: root/include/stdio_dev.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-08-11 11:23:41 -0600
committerTom Rini <trini@konsulko.com>2020-08-23 13:43:10 -0400
commit4225f2f520f2557fb671e1aa02f9ef8090491be5 (patch)
tree117959487125291e3fb90035c2601638747dec5a /include/stdio_dev.h
parent18c587d0992858936600100bee033b73d03c2100 (diff)
downloadu-boot-4225f2f520f2557fb671e1aa02f9ef8090491be5.tar.gz
u-boot-4225f2f520f2557fb671e1aa02f9ef8090491be5.tar.bz2
u-boot-4225f2f520f2557fb671e1aa02f9ef8090491be5.zip
stdio: Tidy up the coding style
Bring the coding style in this file up to the current level. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/stdio_dev.h')
-rw-r--r--include/stdio_dev.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/stdio_dev.h b/include/stdio_dev.h
index b61c0c6cef..48871a6a22 100644
--- a/include/stdio_dev.h
+++ b/include/stdio_dev.h
@@ -84,6 +84,15 @@ int stdio_init(void);
void stdio_print_current_devices(void);
int stdio_deregister(const char *devname, int force);
+
+/**
+ * stdio_deregister_dev() - deregister the device "devname".
+ *
+ * @dev: Stdio device to deregister
+ * @force: true to force deregistration even if in use
+ *
+ * returns 0 on success, -EBUSY if device is assigned
+ */
int stdio_deregister_dev(struct stdio_dev *dev, int force);
struct list_head *stdio_get_list(void);
struct stdio_dev *stdio_get_by_name(const char *name);