diff options
author | Jiri Slaby <jslaby@suse.cz> | 2012-08-07 15:47:50 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-13 19:50:19 -0400 |
commit | 2cb4ca0208722836e921d5ba780b09f29d4026b8 (patch) | |
tree | 85cb521a231de479cf4dea4fe7759723e25a2e57 /include/linux/tty.h | |
parent | 72a33bf58c50892bce7ee4f58d487e818dec1c7e (diff) |
TTY: add tty_port_link_device
This is for those drivers which do not have dynamic device creation
(do not call tty_port_register_device) and do not want to implement
tty->ops->install (will not call tty_port_install). They still have to
provide the link somehow though.
And this newly added function is exactly to serve that purpose.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index acca24bf06a7..69a787fdfa9c 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -497,6 +497,8 @@ extern int tty_write_lock(struct tty_struct *tty, int ndelay); | |||
497 | #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) | 497 | #define tty_is_writelocked(tty) (mutex_is_locked(&tty->atomic_write_lock)) |
498 | 498 | ||
499 | extern void tty_port_init(struct tty_port *port); | 499 | extern void tty_port_init(struct tty_port *port); |
500 | extern void tty_port_link_device(struct tty_port *port, | ||
501 | struct tty_driver *driver, unsigned index); | ||
500 | extern struct device *tty_port_register_device(struct tty_port *port, | 502 | extern struct device *tty_port_register_device(struct tty_port *port, |
501 | struct tty_driver *driver, unsigned index, | 503 | struct tty_driver *driver, unsigned index, |
502 | struct device *device); | 504 | struct device *device); |