]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit641aa566425827c2ac82306efedd79153099d7b4
treebfc46973799e3c7f41fee60f414f93c5a9180774
parent51213984a5013717c93ba5110d1a3b2b2072ddc1
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