usb: gadget: audio: remove c->highpseed = true from f_midi and uac1
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Oct 2012 20:15:01 +0000 (22:15 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 31 Oct 2012 13:05:00 +0000 (15:05 +0200)
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>
drivers/usb/gadget/f_midi.c
drivers/usb/gadget/f_uac1.c

index 8ed1259fe80d0f91bff200abf9d7b6c11966af5a..b2522ba36912f23611d7762698f5f710c645fafd 100644 (file)
@@ -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);
index 1a5dcd5565e31e58c170d1a351368dbf1d9aeb14..c8ed41ba1042b7a900917216ba0b3b8a1b8a8e48 100644 (file)
@@ -667,7 +667,6 @@ f_audio_bind(struct usb_configuration *c, struct usb_function *f)
         * both speeds
         */
        if (gadget_is_dualspeed(c->cdev->gadget)) {
-               c->highspeed = true;
                f->hs_descriptors = usb_copy_descriptors(f_audio_desc);
        }