summaryrefslogtreecommitdiffstats
path: root/include/console.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-19 15:20:23 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-24 09:21:40 +0200
commit050f0d5978efde602c890d565dcba1566be6a335 (patch)
tree0abeddd2399b0dd0dbec32f9169222fa01f26067 /include/console.h
parent14e8e0a421004ae6fc3d9351fb44eb402e5da77a (diff)
downloadbarebox-050f0d5978efde602c890d565dcba1566be6a335.tar.gz
barebox-050f0d5978efde602c890d565dcba1566be6a335.tar.xz
console: introduce console_get_by_dev
so we can get console by it's device Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r--include/console.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 72cf99f55b..355e259883 100644
--- a/include/console.h
+++ b/include/console.h
@@ -49,6 +49,8 @@ struct console_device {
int console_register(struct console_device *cdev);
int console_unregister(struct console_device *cdev);
+struct console_device *console_get_by_dev(struct device_d *dev);
+
extern struct list_head console_list;
#define for_each_console(console) list_for_each_entry(console, &console_list, list)