diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2020-08-20 09:34:45 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-08-24 08:48:36 +0200 |
commit | e8e24151f2254832d0462528ca722d7c4d261a81 (patch) | |
tree | 3215421033c38d0b1dcb012598c7ebcd8cacefc6 /include/console.h | |
parent | 8b45504693e9912140bbc1f7875a994f90c76d55 (diff) | |
download | barebox-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.h | 1 |
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) |