diff options
author | Felipe Balbi <balbi@ti.com> | 2011-10-10 02:43:44 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 13:39:59 -0400 |
commit | 089b837a39552ee49a4ea4c188e8c3517473f10c (patch) | |
tree | 26acc9c79692e38e08ff0edb46bbf54a0c1d57b0 | |
parent | 478ff25adef3d0ec394c8870fcf317c26839b482 (diff) |
usb: gadget: fix typo for default U1/U2 exit latencies
s/DEFULT/DEFAULT/, no functional changes.
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/gadget/composite.c | 4 | ||||
-rw-r--r-- | include/linux/usb/gadget.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index e74fd55c33d9..8a5529d214fb 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c | |||
@@ -542,9 +542,9 @@ static int bos_desc(struct usb_composite_dev *cdev) | |||
542 | if (cdev->gadget->ops->get_config_params) | 542 | if (cdev->gadget->ops->get_config_params) |
543 | cdev->gadget->ops->get_config_params(&dcd_config_params); | 543 | cdev->gadget->ops->get_config_params(&dcd_config_params); |
544 | else { | 544 | else { |
545 | dcd_config_params.bU1devExitLat = USB_DEFULT_U1_DEV_EXIT_LAT; | 545 | dcd_config_params.bU1devExitLat = USB_DEFAULT_U1_DEV_EXIT_LAT; |
546 | dcd_config_params.bU2DevExitLat = | 546 | dcd_config_params.bU2DevExitLat = |
547 | cpu_to_le16(USB_DEFULT_U2_DEV_EXIT_LAT); | 547 | cpu_to_le16(USB_DEFAULT_U2_DEV_EXIT_LAT); |
548 | } | 548 | } |
549 | ss_cap->bU1devExitLat = dcd_config_params.bU1devExitLat; | 549 | ss_cap->bU1devExitLat = dcd_config_params.bU1devExitLat; |
550 | ss_cap->bU2DevExitLat = dcd_config_params.bU2DevExitLat; | 550 | ss_cap->bU2DevExitLat = dcd_config_params.bU2DevExitLat; |
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 087f4b931833..1d3a67523ffc 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
@@ -437,9 +437,9 @@ static inline void usb_ep_fifo_flush(struct usb_ep *ep) | |||
437 | 437 | ||
438 | struct usb_dcd_config_params { | 438 | struct usb_dcd_config_params { |
439 | __u8 bU1devExitLat; /* U1 Device exit Latency */ | 439 | __u8 bU1devExitLat; /* U1 Device exit Latency */ |
440 | #define USB_DEFULT_U1_DEV_EXIT_LAT 0x01 /* Less then 1 microsec */ | 440 | #define USB_DEFAULT_U1_DEV_EXIT_LAT 0x01 /* Less then 1 microsec */ |
441 | __le16 bU2DevExitLat; /* U2 Device exit Latency */ | 441 | __le16 bU2DevExitLat; /* U2 Device exit Latency */ |
442 | #define USB_DEFULT_U2_DEV_EXIT_LAT 0x1F4 /* Less then 500 microsec */ | 442 | #define USB_DEFAULT_U2_DEV_EXIT_LAT 0x1F4 /* Less then 500 microsec */ |
443 | }; | 443 | }; |
444 | 444 | ||
445 | 445 | ||