]> git.baikalelectronics.ru Git - kernel.git/commit
tty: drop unused alt_speed from tty_struct
authorJohan Hovold <johan@kernel.org>
Tue, 6 Jun 2017 10:54:41 +0000 (12:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 09:49:58 +0000 (11:49 +0200)
commitbe2d8b58e894db966117b9c148abf928c88897b6
tree35302256ad9c3e76793a3ef6f7c5d0be2a76fa22
parent44cc55fe499e4433261b8d3f81ebed05cad131dd
tty: drop unused alt_speed from tty_struct

Drop the now unused alt_speed field from struct tty_struct.

Setting an alt_speed using the ASYNC_SPD flags has been deprecated since
v2.1.69, and has been broken for all tty drivers but serial-core since
v3.10 and commit 2d978ad72e09 ("TTY: do not warn about setting speed via
SPD_*") without anyone noticing.

Note that serial-core still supports changing speed using TIOCSSERIAL
and SPD flags (including "alt-speeds"), but also warns about it being
deprecated since pre-git.

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/tty.h