aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/tty_port.c
diff options
context:
space:
mode:
authorAlan Cox <alan@redhat.com>2009-01-02 08:45:19 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2009-01-02 13:19:38 -0500
commit5d951fb458f847e5485b5251597fbf326000bb3b (patch)
treef668a015282f657f258995a1e5a85e145ca8251a /drivers/char/tty_port.c
parentd0c9873addc1f18e7becb50094dad07df8cc4694 (diff)
tty: Pull the dtr raise into tty port
This moves another per device special out of what should be shared open wait paths into private methods Signed-off-by: Alan Cox <alan@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/tty_port.c')
-rw-r--r--drivers/char/tty_port.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/char/tty_port.c b/drivers/char/tty_port.c
index f54e40cbf023..0557b6384747 100644
--- a/drivers/char/tty_port.c
+++ b/drivers/char/tty_port.c
@@ -111,3 +111,19 @@ int tty_port_carrier_raised(struct tty_port *port)
111 return port->ops->carrier_raised(port); 111 return port->ops->carrier_raised(port);
112} 112}
113EXPORT_SYMBOL(tty_port_carrier_raised); 113EXPORT_SYMBOL(tty_port_carrier_raised);
114
115/**
116 * tty_port_raise_dtr_rts - Riase DTR/RTS
117 * @port: tty port
118 *
119 * Wrapper for the DTR/RTS raise logic. For the moment this is used
120 * to hide some internal details. This will eventually become entirely
121 * internal to the tty port.
122 */
123
124void tty_port_raise_dtr_rts(struct tty_port *port)
125{
126 if (port->ops->raise_dtr_rts)
127 port->ops->raise_dtr_rts(port);
128}
129EXPORT_SYMBOL(tty_port_raise_dtr_rts);