aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2015-01-25 14:44:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-02 13:11:28 -0500
commit632f32e2107d37598e3f6816dcf00c7cab4081ca (patch)
treeb706ec2b89cc27832f19caff0c50bc500cab252e /drivers/tty
parent348f9bb31c56909f9098a598b6ecdc94a560816e (diff)
tty: Remove external interface for tty_set_termios()
tty_set_termios() is an internal helper intended for file scope use. UART drivers which are capable of driving the RTS pin must properly handle the tiocmset() method, regardless of termios settings. A failure to do so is a UART driver bug and should be fixed there. Do not use this interface to workaround UART driver bugs. Cc: Johan Hedberg <johan.hedberg@gmail.com> Cc: <linux-bluetooth@vger.kernel.org> Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Acked-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/tty_ioctl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c
index 1787fa4d9448..a5cf253b2544 100644
--- a/drivers/tty/tty_ioctl.c
+++ b/drivers/tty/tty_ioctl.c
@@ -530,7 +530,7 @@ EXPORT_SYMBOL(tty_termios_hw_change);
530 * Locking: termios_rwsem 530 * Locking: termios_rwsem
531 */ 531 */
532 532
533int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios) 533static int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios)
534{ 534{
535 struct ktermios old_termios; 535 struct ktermios old_termios;
536 struct tty_ldisc *ld; 536 struct tty_ldisc *ld;
@@ -563,7 +563,6 @@ int tty_set_termios(struct tty_struct *tty, struct ktermios *new_termios)
563 up_write(&tty->termios_rwsem); 563 up_write(&tty->termios_rwsem);
564 return 0; 564 return 0;
565} 565}
566EXPORT_SYMBOL_GPL(tty_set_termios);
567 566
568/** 567/**
569 * set_termios - set termios values for a tty 568 * set_termios - set termios values for a tty