USB: serial: opticon: add chars_in_buffer() implementation
authorJohan Hovold <johan@kernel.org>
Tue, 14 Jan 2020 11:01:45 +0000 (12:01 +0100)
committerJohan Hovold <johan@kernel.org>
Fri, 17 Jan 2020 10:27:54 +0000 (11:27 +0100)
commita00e7182308f41cac1aa071912ff7a16797dade9
treebfc46973799e3c7f41fee60f414f93c5a9180774
parentb3a987b0264d3ddbb24293ebff10eddfc472f653
USB: serial: opticon: add chars_in_buffer() implementation

Add a chars_in_buffer() implementation so that the tty layer will wait
for outgoing buffered data to be drained when needed (e.g. on final
close()).

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/opticon.c