tty_port: Add port client functions
authorRob Herring <robh@kernel.org>
Thu, 2 Feb 2017 19:48:05 +0000 (13:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2017 09:17:02 +0000 (10:17 +0100)
commitc3485ee0d560b182e1e0f67d67246718739f0782
treedb88cef8a824e3de3d40950e84bd816534719704
parenta380ed461f66d1b843cf13380a43a5fe790b8430
tty_port: Add port client functions

Introduce a client (upward direction) operations struct for tty_port
clients. Initially supported operations are for receiving data and write
wake-up. This will allow for having clients other than an ldisc.

Convert the calls to the ldisc to use the client ops as the default
operations.

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Tested-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_buffer.c
drivers/tty/tty_port.c
include/linux/tty.h