usb: gadget: move USB_BUFSIZ into global composite.h
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 10 Sep 2012 13:01:51 +0000 (15:01 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 10 Sep 2012 13:00:01 +0000 (16:00 +0300)
commite13f17ff8854e04cfc6b9f981a974f55d8da9b92
tree9342ea309b44de0d0869d10728d03ad06ecd67f7
parentdc995fc27c2e1c8edebfb2405ede23bd38153f7f
usb: gadget: move USB_BUFSIZ into global composite.h

This patch moves USB_BUFSIZ into global header file as
USB_COMP_EP0_BUFSIZ. There is currently only one user (f_sourcesink)
besides composite which need it. Ideally f_sourcesink would have its
own ep0 buffer. Lets keep it that way it was for now.

Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c
drivers/usb/gadget/f_sourcesink.c
include/linux/usb/composite.h