mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
Merge "usb: gadget: Add super speed plus desc for midi function"
This commit is contained in:
commit
dcd4256817
1 changed files with 6 additions and 0 deletions
|
|
@ -1050,6 +1050,12 @@ static int f_midi_bind(struct usb_configuration *c, struct usb_function *f)
|
|||
goto fail_f_midi;
|
||||
}
|
||||
|
||||
if (gadget_is_superspeed_plus(c->cdev->gadget)) {
|
||||
f->ssp_descriptors = usb_copy_descriptors(midi_function);
|
||||
if (!f->ssp_descriptors)
|
||||
goto fail_f_midi;
|
||||
}
|
||||
|
||||
kfree(midi_function);
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue