Commit 1ff767bf authored by Colin Ian King's avatar Colin Ian King Committed by Felipe Balbi

usb: gadget: fix various indentation issues

There are a bunch of various indentation issues, clean these up.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent 97311c8f
...@@ -459,10 +459,10 @@ static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt) ...@@ -459,10 +459,10 @@ static int f_audio_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
} else if (intf == uac1->as_in_intf) { } else if (intf == uac1->as_in_intf) {
uac1->as_in_alt = alt; uac1->as_in_alt = alt;
if (alt) if (alt)
ret = u_audio_start_playback(&uac1->g_audio); ret = u_audio_start_playback(&uac1->g_audio);
else else
u_audio_stop_playback(&uac1->g_audio); u_audio_stop_playback(&uac1->g_audio);
} else { } else {
dev_err(dev, "%s:%d Error!\n", __func__, __LINE__); dev_err(dev, "%s:%d Error!\n", __func__, __LINE__);
return -EINVAL; return -EINVAL;
......
...@@ -1218,27 +1218,27 @@ ep0_poll (struct file *fd, poll_table *wait) ...@@ -1218,27 +1218,27 @@ ep0_poll (struct file *fd, poll_table *wait)
if (dev->state <= STATE_DEV_OPENED) if (dev->state <= STATE_DEV_OPENED)
return DEFAULT_POLLMASK; return DEFAULT_POLLMASK;
poll_wait(fd, &dev->wait, wait); poll_wait(fd, &dev->wait, wait);
spin_lock_irq (&dev->lock); spin_lock_irq(&dev->lock);
/* report fd mode change before acting on it */ /* report fd mode change before acting on it */
if (dev->setup_abort) { if (dev->setup_abort) {
dev->setup_abort = 0; dev->setup_abort = 0;
mask = EPOLLHUP; mask = EPOLLHUP;
goto out; goto out;
} }
if (dev->state == STATE_DEV_SETUP) { if (dev->state == STATE_DEV_SETUP) {
if (dev->setup_in || dev->setup_can_stall) if (dev->setup_in || dev->setup_can_stall)
mask = EPOLLOUT; mask = EPOLLOUT;
} else { } else {
if (dev->ev_next != 0) if (dev->ev_next != 0)
mask = EPOLLIN; mask = EPOLLIN;
} }
out: out:
spin_unlock_irq(&dev->lock); spin_unlock_irq(&dev->lock);
return mask; return mask;
} }
static long dev_ioctl (struct file *fd, unsigned code, unsigned long value) static long dev_ioctl (struct file *fd, unsigned code, unsigned long value)
......
...@@ -295,7 +295,7 @@ static int ast_vhub_rep_desc(struct ast_vhub_ep *ep, ...@@ -295,7 +295,7 @@ static int ast_vhub_rep_desc(struct ast_vhub_ep *ep,
dsize = AST_VHUB_HUB_DESC_SIZE; dsize = AST_VHUB_HUB_DESC_SIZE;
memcpy(ep->buf, &ast_vhub_hub_desc, dsize); memcpy(ep->buf, &ast_vhub_hub_desc, dsize);
BUILD_BUG_ON(dsize > sizeof(ast_vhub_hub_desc)); BUILD_BUG_ON(dsize > sizeof(ast_vhub_hub_desc));
BUILD_BUG_ON(AST_VHUB_HUB_DESC_SIZE >= AST_VHUB_EP0_MAX_PACKET); BUILD_BUG_ON(AST_VHUB_HUB_DESC_SIZE >= AST_VHUB_EP0_MAX_PACKET);
break; break;
default: default:
return std_req_stall; return std_req_stall;
......
...@@ -311,8 +311,8 @@ int bdc_ep_clear_stall(struct bdc *bdc, int epnum) ...@@ -311,8 +311,8 @@ int bdc_ep_clear_stall(struct bdc *bdc, int epnum)
/* if the endpoint it not stallled */ /* if the endpoint it not stallled */
if (!(ep->flags & BDC_EP_STALL)) { if (!(ep->flags & BDC_EP_STALL)) {
ret = bdc_ep_set_stall(bdc, epnum); ret = bdc_ep_set_stall(bdc, epnum);
if (ret) if (ret)
return ret; return ret;
} }
} }
/* Preserve the seq number for ep0 only */ /* Preserve the seq number for ep0 only */
......
...@@ -2279,7 +2279,7 @@ static void usb_reinit_338x(struct net2280 *dev) ...@@ -2279,7 +2279,7 @@ static void usb_reinit_338x(struct net2280 *dev)
* - It is safe to set for all connection speeds; all chip revisions. * - It is safe to set for all connection speeds; all chip revisions.
* - R-M-W to leave other bits undisturbed. * - R-M-W to leave other bits undisturbed.
* - Reference PLX TT-7372 * - Reference PLX TT-7372
*/ */
val = readl(&dev->ll_chicken_reg->ll_tsn_chicken_bit); val = readl(&dev->ll_chicken_reg->ll_tsn_chicken_bit);
val |= BIT(RECOVERY_IDLE_TO_RECOVER_FMW); val |= BIT(RECOVERY_IDLE_TO_RECOVER_FMW);
writel(val, &dev->ll_chicken_reg->ll_tsn_chicken_bit); writel(val, &dev->ll_chicken_reg->ll_tsn_chicken_bit);
......
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