diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-03-07 07:12:29 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-18 19:19:45 -0400 |
commit | 6aad04f21374633bd8cecf25024553d1e11a9522 (patch) | |
tree | 9e3351e53b68d158b436a737049cbe2ee01ff126 /include | |
parent | 6982a398426a22166eaf049b79544536fdd6429f (diff) |
TTY: add tty_port_tty_wakeup helper
It allows for cleaning up on a considerable amount of places. They did
port_get, wakeup, kref_put. Now the only thing needed is to call
tty_port_tty_wakeup which does exactly that.
One exception is ifx6x60 where tty_wakeup was open-coded. We now call
tty_wakeup properly there.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/tty.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 63b62865c8e9..b6e890a87eb1 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h | |||
@@ -534,6 +534,7 @@ extern int tty_port_carrier_raised(struct tty_port *port); | |||
534 | extern void tty_port_raise_dtr_rts(struct tty_port *port); | 534 | extern void tty_port_raise_dtr_rts(struct tty_port *port); |
535 | extern void tty_port_lower_dtr_rts(struct tty_port *port); | 535 | extern void tty_port_lower_dtr_rts(struct tty_port *port); |
536 | extern void tty_port_hangup(struct tty_port *port); | 536 | extern void tty_port_hangup(struct tty_port *port); |
537 | extern void tty_port_tty_wakeup(struct tty_port *port); | ||
537 | extern int tty_port_block_til_ready(struct tty_port *port, | 538 | extern int tty_port_block_til_ready(struct tty_port *port, |
538 | struct tty_struct *tty, struct file *filp); | 539 | struct tty_struct *tty, struct file *filp); |
539 | extern int tty_port_close_start(struct tty_port *port, | 540 | extern int tty_port_close_start(struct tty_port *port, |