diff options
author | Tatyana Brokhman <tlinder@codeaurora.org> | 2011-06-29 15:41:49 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-07-01 23:27:05 +0200 |
commit | 35a0e0bf6f6b2b900d461e9f35c286953b2b1afc (patch) | |
tree | b052f9d8c8bdcde4663d4e3a27c23541bf05b586 /drivers/usb/gadget/composite.c | |
parent | usb: musb: update musb_platform_ops docs to match code (diff) | |
download | linux-35a0e0bf6f6b2b900d461e9f35c286953b2b1afc.tar.xz linux-35a0e0bf6f6b2b900d461e9f35c286953b2b1afc.zip |
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/composite.c')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index ed8a70f271f4..897e4f57422f 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -1386,6 +1386,8 @@ int usb_composite_probe(struct usb_composite_driver *driver, driver->iProduct = driver->name; composite_driver.function = (char *) driver->name; composite_driver.driver.name = driver->name; + composite_driver.speed = min((u8)composite_driver.speed, + (u8)driver->max_speed); composite = driver; composite_gadget_bind = bind; |