usb: gadget: consider link speed for bMaxPower
[deliverable/linux.git] / drivers / usb / gadget / nokia.c
index 661600abace8deb8a17fe0d8318c53c0b291cf02..1475d663b52771152185df8e5371618b276368b0 100644 (file)
@@ -133,7 +133,7 @@ static struct usb_configuration nokia_config_500ma_driver = {
        .bConfigurationValue = 1,
        /* .iConfiguration = DYNAMIC */
        .bmAttributes   = USB_CONFIG_ATT_ONE,
-       .bMaxPower      = 250, /* 500mA */
+       .MaxPower       = 500,
 };
 
 static struct usb_configuration nokia_config_100ma_driver = {
@@ -141,7 +141,7 @@ static struct usb_configuration nokia_config_100ma_driver = {
        .bConfigurationValue = 2,
        /* .iConfiguration = DYNAMIC */
        .bmAttributes   = USB_CONFIG_ATT_ONE | USB_CONFIG_ATT_SELFPOWER,
-       .bMaxPower      = 50, /* 100 mA */
+       .MaxPower       = 100,
 };
 
 static int __init nokia_bind(struct usb_composite_dev *cdev)
This page took 0.025201 seconds and 5 git commands to generate.