usb: usbtmc: Optimize usbtmc_write
authorGuido Kiener <guido@kiener-muenchen.de>
Wed, 12 Sep 2018 08:51:01 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Sep 2018 11:04:02 +0000 (13:04 +0200)
commit4d5e18d9ed93fcdf1bd625aac80048f6cd0063bc
treeac6ff3da6546377f98dc2e1f40fc0a9dae06a49e
parentec34d08eff71b6cc69bacd70906cf9ff0d8c87a4
usb: usbtmc: Optimize usbtmc_write

Use new usbtmc_generic_write function to maximize bandwidth
during long data transfer.
The maximum output transfer size is limited to INT_MAX (=2GB).

Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c