aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/cdc2.c
diff options
context:
space:
mode:
authorTatyana Brokhman <tlinder@codeaurora.org>2011-06-29 09:41:49 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-07-01 17:27:05 -0400
commit35a0e0bf6f6b2b900d461e9f35c286953b2b1afc (patch)
treeb052f9d8c8bdcde4663d4e3a27c23541bf05b586 /drivers/usb/gadget/cdc2.c
parent9ea35331d052a5af1ba4e6244c52485f82587b60 (diff)
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: Tatyana Brokhman <tlinder@codeaurora.org> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/cdc2.c')
-rw-r--r--drivers/usb/gadget/cdc2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/cdc2.c b/drivers/usb/gadget/cdc2.c
index 2720ab07ef1a..b1c1afbb8750 100644
--- a/drivers/usb/gadget/cdc2.c
+++ b/drivers/usb/gadget/cdc2.c
@@ -244,6 +244,7 @@ static struct usb_composite_driver cdc_driver = {
244 .name = "g_cdc", 244 .name = "g_cdc",
245 .dev = &device_desc, 245 .dev = &device_desc,
246 .strings = dev_strings, 246 .strings = dev_strings,
247 .max_speed = USB_SPEED_HIGH,
247 .unbind = __exit_p(cdc_unbind), 248 .unbind = __exit_p(cdc_unbind),
248}; 249};
249 250