diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-08 15:02:53 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-07-11 09:58:36 +0200 |
commit | 9c4f107c35a77c12a70f5b9aa36600a75b93b358 (patch) | |
tree | becc38a41aa925f67bb2f4f4557c8a0e98805cd0 /include/console.h | |
parent | 239b6559ed5d65cc3e08eae66eb862fefe651e33 (diff) | |
download | barebox-9c4f107c35a77c12a70f5b9aa36600a75b93b358.tar.gz barebox-9c4f107c35a77c12a70f5b9aa36600a75b93b358.tar.xz |
console: Allow persistent device names
Add a devname field to struct console_device so that the device
name can be set by the driver. This makes it possible to have
persistent device names.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/console.h')
-rw-r--r-- | include/console.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 6da0199aba..7535a56121 100644 --- a/include/console.h +++ b/include/console.h @@ -44,6 +44,8 @@ struct console_device { void (*flush)(struct console_device *cdev); int (*set_mode)(struct console_device *cdev, enum console_mode mode); + char *devname; + struct list_head list; unsigned char f_active; |