usb: gadget: f_midi: defaults buflen sizes to 512
authorFelipe F. Tonello <eu@felipetonello.com>
Mon, 8 Aug 2016 20:30:08 +0000 (21:30 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 25 Aug 2016 09:13:15 +0000 (12:13 +0300)
commit7ea9fde7605c3d224ba28cd17ffd8ac408453a96
treeee7ae44c3ce1dd00301a39cac96f536428e508a5
parent4a655f152e7932e43356b683958200094b368d5a
usb: gadget: f_midi: defaults buflen sizes to 512

512 is the value used by wMaxPacketSize, as specified by the USB Spec. This
makes sure this driver uses, by default, the most optimal value for IN and OUT
endpoint requests.

Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/function/f_midi.c
drivers/usb/gadget/legacy/gmidi.c