summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2020-08-20 09:34:45 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-08-24 08:48:36 +0200
commite8e24151f2254832d0462528ca722d7c4d261a81 (patch)
tree3215421033c38d0b1dcb012598c7ebcd8cacefc6 /include/console.h
parent8b45504693e9912140bbc1f7875a994f90c76d55 (diff)
downloadbarebox-e8e24151f2254832d0462528ca722d7c4d261a81.tar.gz
barebox-e8e24151f2254832d0462528ca722d7c4d261a81.tar.xz
common: console_common: add of_console_get_by_alias() helper
Add helper function to get console device by devicetree alias Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 5b5c037026..a71d0da42e 100644
--- a/include/console.h
+++ b/include/console.h
@@ -87,6 +87,7 @@ int console_unregister(struct console_device *cdev);
struct console_device *console_get_by_dev(struct device_d *dev);
struct console_device *console_get_by_name(const char *name);
+struct console_device *of_console_get_by_alias(const char *alias);
extern struct list_head console_list;
#define for_each_console(console) list_for_each_entry(console, &console_list, list)