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

Commit 596a20c0 authored by Tatyana Brokhman's avatar Tatyana Brokhman Committed by Stephen Boyd
Browse files

usb: gadget: add max_speed to usb_composite_driver



This field is used by the Gadget drivers to specify
the maximum speed they support, meaning: the maximum
speed they can provide descriptors for.

The driver speed will be set in consideration of this
value.

[ balbi@ti.com : dropped the ifdeffery ]

Signed-off-by: default avatarTatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
[idos@codeaurora.org: added max_speed also to android.c]
Signed-off-by: default avatarIdo Shayevitz <idos@codeaurora.org>
parent 2be6f6c0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1949,7 +1949,7 @@ static struct usb_composite_driver android_usb_driver = {
	.bind		= android_bind,
	.unbind		= android_usb_unbind,
	.disconnect	= android_disconnect,
	.max_speed	= USB_SPEED_HIGH,
	.max_speed	= USB_SPEED_SUPER
};

static int android_create_device(struct android_dev *dev)