Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8df00bf9 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: gadget: Add super speed plus desc for midi function"

parents e12708e0 bb833da2
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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;