summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/f_midi.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>2012-10-23 00:15:01 +0400
committerFelipe Balbi <balbi@ti.com>2012-10-31 17:05:00 +0400
commit1377af2f756f3b5de2850ec0a5edebf227798d02 (patch)
tree50be4506b46fad8d5613482580ab69064ccb78e9 /drivers/usb/gadget/f_midi.c
parente79cc615a9bb44da72c499ccfa2c9c4bbea3aa84 (diff)
downloadlinux-1377af2f756f3b5de2850ec0a5edebf227798d02.tar.xz
usb: gadget: audio: remove c->highpseed = true from f_midi and uac1
Whether highspeed configuration is valid or not is something that composite decides and not the gadget. That gadget can only provide the required descriptors for it. Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/f_midi.c')
-rw-r--r--drivers/usb/gadget/f_midi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_midi.c b/drivers/usb/gadget/f_midi.c
index 8ed1259fe80d..b2522ba36912 100644
--- a/drivers/usb/gadget/f_midi.c
+++ b/drivers/usb/gadget/f_midi.c
@@ -882,7 +882,6 @@ f_midi_bind(struct usb_configuration *c, struct usb_function *f)
*/
/* copy descriptors, and track endpoint copies */
if (gadget_is_dualspeed(c->cdev->gadget)) {
- c->highspeed = true;
bulk_in_desc.wMaxPacketSize = cpu_to_le16(512);
bulk_out_desc.wMaxPacketSize = cpu_to_le16(512);
f->hs_descriptors = usb_copy_descriptors(midi_function);