summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorcsanchez@neurowork.net2010-05-25 17:53:17 +0200
committerGreg Kroah-Hartman2010-08-10 23:35:34 +0200
commitcd62aced31dee9a9a8e63da7bd564911891b3665 (patch)
tree9abef1318fe0ccc487e4bc49c8dddc2d7b712ea7 /drivers/usb
parentUSB: core driver: Fix Coding Styles (diff)
downloadkernel-qcow2-linux-cd62aced31dee9a9a8e63da7bd564911891b3665.tar.gz
kernel-qcow2-linux-cd62aced31dee9a9a8e63da7bd564911891b3665.tar.xz
kernel-qcow2-linux-cd62aced31dee9a9a8e63da7bd564911891b3665.zip
USB: core endpoint: Fix Coding Styles
Fixed coding styles in the core usb endpoint. Signed-off-by: Carlos Sánchez Acosta <csanchez@neurowork.net> Signed-off-by: Alejandro Sánchez Acosta <asanchez@neurowork.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/endpoint.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/usb/core/endpoint.c b/drivers/usb/core/endpoint.c
index 4f84a41ee7a8..3788e738e265 100644
--- a/drivers/usb/core/endpoint.c
+++ b/drivers/usb/core/endpoint.c
@@ -96,16 +96,21 @@ static ssize_t show_ep_interval(struct device *dev,
switch (usb_endpoint_type(ep->desc)) {
case USB_ENDPOINT_XFER_CONTROL:
- if (ep->udev->speed == USB_SPEED_HIGH) /* uframes per NAK */
+ if (ep->udev->speed == USB_SPEED_HIGH)
+ /* uframes per NAK */
interval = ep->desc->bInterval;
break;
+
case USB_ENDPOINT_XFER_ISOC:
interval = 1 << (ep->desc->bInterval - 1);
break;
+
case USB_ENDPOINT_XFER_BULK:
- if (ep->udev->speed == USB_SPEED_HIGH && !in) /* uframes per NAK */
+ if (ep->udev->speed == USB_SPEED_HIGH && !in)
+ /* uframes per NAK */
interval = ep->desc->bInterval;
break;
+
case USB_ENDPOINT_XFER_INT:
if (ep->udev->speed == USB_SPEED_HIGH)
interval = 1 << (ep->desc->bInterval - 1);