tty: add a helper for setting termios data from kernel side
[firefly-linux-kernel-4.4.55.git] / include / linux / tty.h
index ef1e0123573b50eac09968d00e1202b58392df5c..4e53d4641b388c965903af977d33b53f5fb1e20b 100644 (file)
@@ -448,6 +448,7 @@ extern void tty_encode_baud_rate(struct tty_struct *tty,
                                                speed_t ibaud, speed_t obaud);
 extern void tty_termios_copy_hw(struct ktermios *new, struct ktermios *old);
 extern int tty_termios_hw_change(struct ktermios *a, struct ktermios *b);
+extern int tty_set_termios(struct tty_struct *tty, struct ktermios *kt);
 
 extern struct tty_ldisc *tty_ldisc_ref(struct tty_struct *);
 extern void tty_ldisc_deref(struct tty_ldisc *);