aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/gadget.c
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2011-11-04 06:32:47 -0400
committerFelipe Balbi <balbi@ti.com>2011-12-12 04:48:29 -0500
commit25b8ff68bf1d4954d4a9dcb4862c6b6a53cb09e2 (patch)
tree450f0d681ae8bc836e8e7843cfb01e3dd54ccddf /drivers/usb/dwc3/gadget.c
parent4878a02898bab1a988206341e529997cb46e5f29 (diff)
usb: dwc3: fix few coding style problems
There were a few coding style issues with this driver which are now fixed: drivers/usb/dwc3/debugfs.c:48: WARNING: Use #include \ <linux/uaccess.h> instead of <asm/uaccess.h> drivers/usb/dwc3/debugfs.c:484: ERROR: space required \ before the open brace '{' drivers/usb/dwc3/ep0.c:261: WARNING: line over 80 characters drivers/usb/dwc3/ep0.c:287: WARNING: suspect code indent \ for conditional statements (16, 23) drivers/usb/dwc3/gadget.c:749: WARNING: line over 80 characters drivers/usb/dwc3/gadget.c:1267: WARNING: line over 80 characters drivers/usb/dwc3/gadget.h:116: WARNING: line over 80 characters drivers/usb/dwc3/io.h:42: WARNING: Use #include \ <linux/io.h> instead of <asm/io.h> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r--drivers/usb/dwc3/gadget.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 8aff490a1ae1..9497fa5e3921 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -745,8 +745,9 @@ static int __dwc3_gadget_kick_transfer(struct dwc3_ep *dep, u16 cmd_param,
745 dep->flags |= DWC3_EP_BUSY; 745 dep->flags |= DWC3_EP_BUSY;
746 dep->res_trans_idx = dwc3_gadget_ep_get_transfer_index(dwc, 746 dep->res_trans_idx = dwc3_gadget_ep_get_transfer_index(dwc,
747 dep->number); 747 dep->number);
748 if (!dep->res_trans_idx) 748
749 printk_once(KERN_ERR "%s() res_trans_idx is invalid\n", __func__); 749 WARN_ON_ONCE(!dep->res_trans_idx);
750
750 return 0; 751 return 0;
751} 752}
752 753
@@ -1264,11 +1265,10 @@ static int __devinit dwc3_gadget_init_endpoints(struct dwc3 *dwc)
1264 &dwc->gadget.ep_list); 1265 &dwc->gadget.ep_list);
1265 1266
1266 ret = dwc3_alloc_trb_pool(dep); 1267 ret = dwc3_alloc_trb_pool(dep);
1267 if (ret) { 1268 if (ret)
1268 dev_err(dwc->dev, "%s: failed to allocate TRB pool\n", dep->name);
1269 return ret; 1269 return ret;
1270 }
1271 } 1270 }
1271
1272 INIT_LIST_HEAD(&dep->request_list); 1272 INIT_LIST_HEAD(&dep->request_list);
1273 INIT_LIST_HEAD(&dep->req_queued); 1273 INIT_LIST_HEAD(&dep->req_queued);
1274 } 1274 }