tty: Remove chars_in_buffer() line discipline method
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 11 Jan 2016 06:40:54 +0000 (22:40 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 23:01:44 +0000 (15:01 -0800)
commitfdfb719e93b55a50f90da2059dc450e7c0c48e8f
tree5317736293b5c7c16673df42d4542b78a70831aa
parent582e20a03b9bcbddaeaffb38800323ddcc4a9173
tty: Remove chars_in_buffer() line discipline method

The chars_in_buffer() line discipline method serves no functional
purpose, other than as a (dubious) debugging aid for mostly bit-rotting
drivers. Despite being documented as an optional method, every caller
is unconditionally executed (although conditionally compiled).
Furthermore, direct tty->ldisc access without an ldisc ref is unsafe.
Lastly, N_TTY's chars_in_buffer() has warned of removal since 3.12.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/serial/tty.txt
drivers/tty/amiserial.c
drivers/tty/cyclades.c
drivers/tty/n_gsm.c
drivers/tty/n_tty.c
drivers/tty/rocket.c
drivers/tty/serial/crisv10.c
include/linux/tty_ldisc.h