USB: io_ti: fix chars_in_buffer overhead
authorJohan Hovold <jhovold@gmail.com>
Sun, 5 May 2013 18:32:31 +0000 (20:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Jun 2013 17:49:49 +0000 (10:49 -0700)
commit0cbb8c818c051fc5a9aaa8327954e901f6b8a745
tree7a9b8f686a8bc3f4d55b741e995ee68076c13d8c
parent487bc65d5a0bba6dbc8f07c46734c90b500e4b64
USB: io_ti: fix chars_in_buffer overhead

commit b16634adce951a7371be931487034f7365971ed0 upstream.

Use the new generic usb-serial wait_until_sent implementation to wait
for hardware buffers to drain.

This removes the need to check the hardware buffers in chars_in_buffer
and thus removes the overhead introduced by commit 263e1f9f ("USB:
io_ti: query hardware-buffer status in chars_in_buffer") without
breaking tty_wait_until_sent (used by, for example, tcdrain, tcsendbreak
and close).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/io_ti.c