USB: serial: keyspan_pda: refactor write-room handling
authorJohan Hovold <johan@kernel.org>
Sun, 25 Oct 2020 17:45:53 +0000 (18:45 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 4 Nov 2020 10:01:31 +0000 (11:01 +0100)
commit79fe6826a5ebee2724d432a736ec04d8dca143ba
treef92a8acacbc835cd1f6b066c51ab1a0365ac1fe5
parent320f9028c7873c3c7710e8e93e5c979f4c857490
USB: serial: keyspan_pda: refactor write-room handling

Add helper to retrieve the available device transfer-buffer space.

Acked-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/keyspan_pda.c