aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/n_tty.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r--drivers/tty/n_tty.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
index b280abaad91b..90eca2605fbf 100644
--- a/drivers/tty/n_tty.c
+++ b/drivers/tty/n_tty.c
@@ -381,28 +381,6 @@ static void n_tty_flush_buffer(struct tty_struct *tty)
381} 381}
382 382
383/** 383/**
384 * n_tty_chars_in_buffer - report available bytes
385 * @tty: tty device
386 *
387 * Report the number of characters buffered to be delivered to user
388 * at this instant in time.
389 *
390 * Locking: exclusive termios_rwsem
391 */
392
393static ssize_t n_tty_chars_in_buffer(struct tty_struct *tty)
394{
395 ssize_t n;
396
397 WARN_ONCE(1, "%s is deprecated and scheduled for removal.", __func__);
398
399 down_write(&tty->termios_rwsem);
400 n = chars_in_buffer(tty);
401 up_write(&tty->termios_rwsem);
402 return n;
403}
404
405/**
406 * is_utf8_continuation - utf8 multibyte check 384 * is_utf8_continuation - utf8 multibyte check
407 * @c: byte to check 385 * @c: byte to check
408 * 386 *
@@ -2525,7 +2503,6 @@ struct tty_ldisc_ops tty_ldisc_N_TTY = {
2525 .open = n_tty_open, 2503 .open = n_tty_open,
2526 .close = n_tty_close, 2504 .close = n_tty_close,
2527 .flush_buffer = n_tty_flush_buffer, 2505 .flush_buffer = n_tty_flush_buffer,
2528 .chars_in_buffer = n_tty_chars_in_buffer,
2529 .read = n_tty_read, 2506 .read = n_tty_read,
2530 .write = n_tty_write, 2507 .write = n_tty_write,
2531 .ioctl = n_tty_ioctl, 2508 .ioctl = n_tty_ioctl,