On Tue, Aug 23, 2011 at 12:04 AM, Michal Nazarewicz <mnazarewicz@xxxxxxxxxx> wrote: > From: Michal Nazarewicz <mina86@xxxxxxxxxx> > > This commit renames the “speed” field of the usb_gadget_driver > structure to “max_speed”. This is so that to make it more > apparent that the field represents the maximum speed gadget > driver can support. > > This also make the field look more like fields with the same > name in usb_gadget and usb_composite_driver structures. All > of those represent the *maximal* speed given entity supports. > > After this commit, there are the following fields in various > structures: > * usb_gadget::speed - the current connection speed, > * usb_gadget::max_speed - maximal speed UDC supports, > * usb_gadget_driver::max_speed - maximal speed gadget driver > supports, and > * usb_composite_driver::max_speed - maximal speed composite > gadget supports. > > Signed-off-by: Michal Nazarewicz <mina86@xxxxxxxxxx> > --- > drivers/usb/gadget/amd5536udc.c | 2 +- > drivers/usb/gadget/ci13xxx_udc.c | 2 +- > drivers/usb/gadget/composite.c | 8 ++++---- > drivers/usb/gadget/dbgp.c | 2 +- > drivers/usb/gadget/dummy_hcd.c | 13 ++++++------- > drivers/usb/gadget/file_storage.c | 4 ++-- > drivers/usb/gadget/gmidi.c | 2 +- > drivers/usb/gadget/goku_udc.c | 2 +- > drivers/usb/gadget/inode.c | 6 +++--- > drivers/usb/gadget/m66592-udc.c | 2 +- > drivers/usb/gadget/net2272.c | 2 +- > drivers/usb/gadget/net2280.c | 2 +- > drivers/usb/gadget/pch_udc.c | 2 +- > drivers/usb/gadget/printer.c | 2 +- > drivers/usb/gadget/r8a66597-udc.c | 2 +- > include/linux/usb/gadget.h | 4 ++-- > 16 files changed, 28 insertions(+), 29 deletions(-) > Still missing drivers/usb/musb/musb_gadget for the speed check -- Regards Yang RuiRui -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html