USB: ir-usb: allow custom bulk buffer size without reallocation
authorJohan Hovold <jhovold@gmail.com>
Thu, 13 May 2010 19:02:01 +0000 (21:02 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:45 +0000 (13:21 -0700)
commit6f6ed696945c9c98fb6e0def32d29411d958a6fa
treed1221159397f5de2f4bb5985b7eb05cd806a322f
parent2ff78c0c2b67120c8e503268da3f177cae2228a2
USB: ir-usb: allow custom bulk buffer size without reallocation

Use usb_serial_driver bulk_in_size and bulk_out_size to make sure
buffers of appropriate sizes are allocated in the first place rather than
reallocating them at every open.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ir-usb.c