diff options
author | Jiri Slaby <jslaby@suse.cz> | 2013-03-07 07:12:27 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-18 19:19:05 -0400 |
commit | 6865ff222ccab371c04afce17aec1f7d70b17dbc (patch) | |
tree | c5fb3ebecb698f8735e52fd7bdcbcb69e3a99f86 /drivers/tty/tty_ioctl.c | |
parent | 049b539b39977fc9343056435eba568fc7779970 (diff) |
TTY: do not warn about setting speed via SPD_*
The warning is there since 2.1.69 and we have not seen anybody
reporting it in the past decade. Remove the warning now.
tty_get_baud_rate can now be inline. This gives us one less
EXPORT_SYMBOL.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_ioctl.c')
-rw-r--r-- | drivers/tty/tty_ioctl.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/drivers/tty/tty_ioctl.c b/drivers/tty/tty_ioctl.c index 132d452578bb..28715e48b2f7 100644 --- a/drivers/tty/tty_ioctl.c +++ b/drivers/tty/tty_ioctl.c | |||
@@ -479,34 +479,6 @@ void tty_encode_baud_rate(struct tty_struct *tty, speed_t ibaud, speed_t obaud) | |||
479 | EXPORT_SYMBOL_GPL(tty_encode_baud_rate); | 479 | EXPORT_SYMBOL_GPL(tty_encode_baud_rate); |
480 | 480 | ||
481 | /** | 481 | /** |
482 | * tty_get_baud_rate - get tty bit rates | ||
483 | * @tty: tty to query | ||
484 | * | ||
485 | * Returns the baud rate as an integer for this terminal. The | ||
486 | * termios lock must be held by the caller and the terminal bit | ||
487 | * flags may be updated. | ||
488 | * | ||
489 | * Locking: none | ||
490 | */ | ||
491 | |||
492 | speed_t tty_get_baud_rate(struct tty_struct *tty) | ||
493 | { | ||
494 | speed_t baud = tty_termios_baud_rate(&tty->termios); | ||
495 | |||
496 | if (baud == 38400 && tty->alt_speed) { | ||
497 | if (!tty->warned) { | ||
498 | printk(KERN_WARNING "Use of setserial/setrocket to " | ||
499 | "set SPD_* flags is deprecated\n"); | ||
500 | tty->warned = 1; | ||
501 | } | ||
502 | baud = tty->alt_speed; | ||
503 | } | ||
504 | |||
505 | return baud; | ||
506 | } | ||
507 | EXPORT_SYMBOL(tty_get_baud_rate); | ||
508 | |||
509 | /** | ||
510 | * tty_termios_copy_hw - copy hardware settings | 482 | * tty_termios_copy_hw - copy hardware settings |
511 | * @new: New termios | 483 | * @new: New termios |
512 | * @old: Old termios | 484 | * @old: Old termios |