Commit cd62aced authored by csanchez@neurowork.net's avatar csanchez@neurowork.net Committed by Greg Kroah-Hartman

USB: core endpoint: Fix Coding Styles

Fixed coding styles in the core usb endpoint.
Signed-off-by: default avatarCarlos Sánchez Acosta <csanchez@neurowork.net>
Signed-off-by: default avatarAlejandro Sánchez Acosta <asanchez@neurowork.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 16be5725
...@@ -96,16 +96,21 @@ static ssize_t show_ep_interval(struct device *dev, ...@@ -96,16 +96,21 @@ static ssize_t show_ep_interval(struct device *dev,
switch (usb_endpoint_type(ep->desc)) { switch (usb_endpoint_type(ep->desc)) {
case USB_ENDPOINT_XFER_CONTROL: 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; interval = ep->desc->bInterval;
break; break;
case USB_ENDPOINT_XFER_ISOC: case USB_ENDPOINT_XFER_ISOC:
interval = 1 << (ep->desc->bInterval - 1); interval = 1 << (ep->desc->bInterval - 1);
break; break;
case USB_ENDPOINT_XFER_BULK: 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; interval = ep->desc->bInterval;
break; break;
case USB_ENDPOINT_XFER_INT: case USB_ENDPOINT_XFER_INT:
if (ep->udev->speed == USB_SPEED_HIGH) if (ep->udev->speed == USB_SPEED_HIGH)
interval = 1 << (ep->desc->bInterval - 1); interval = 1 << (ep->desc->bInterval - 1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment