n_tty: Refactor input_available_p() by call site
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 2 Dec 2013 19:24:45 +0000 (14:24 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 00:52:40 +0000 (16:52 -0800)
commiteafbe67f84761d787802e5113d895a316b6292fe
treeab2e9fe80d4ce8148334c84fb11ea8f792069d7f
parent001ba923719bc555552ac4c9fe8df4d8c888df39
n_tty: Refactor input_available_p() by call site

Distinguish if caller is n_tty_poll() or n_tty_read(), and
set the read/wakeup threshold accordingly.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c