]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/tty_port.c
tty: Pull the dtr raise into tty port
[linux-2.6-omap-h63xx.git] / drivers / char / tty_port.c
index f54e40cbf02352113485c2f9c0ac9a4baf47ba74..0557b63847472121dfd80074283fdbb97177948c 100644 (file)
@@ -111,3 +111,19 @@ int tty_port_carrier_raised(struct tty_port *port)
        return port->ops->carrier_raised(port);
 }
 EXPORT_SYMBOL(tty_port_carrier_raised);
+
+/**
+ *     tty_port_raise_dtr_rts  -       Riase DTR/RTS
+ *     @port: tty port
+ *
+ *     Wrapper for the DTR/RTS raise logic. For the moment this is used
+ *     to hide some internal details. This will eventually become entirely
+ *     internal to the tty port.
+ */
+
+void tty_port_raise_dtr_rts(struct tty_port *port)
+{
+       if (port->ops->raise_dtr_rts)
+               port->ops->raise_dtr_rts(port);
+}
+EXPORT_SYMBOL(tty_port_raise_dtr_rts);