diff options
author | Felipe Balbi <balbi@ti.com> | 2011-11-04 06:32:47 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-12-12 04:48:29 -0500 |
commit | 25b8ff68bf1d4954d4a9dcb4862c6b6a53cb09e2 (patch) | |
tree | 450f0d681ae8bc836e8e7843cfb01e3dd54ccddf /drivers/usb/dwc3/ep0.c | |
parent | 4878a02898bab1a988206341e529997cb46e5f29 (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/ep0.c')
-rw-r--r-- | drivers/usb/dwc3/ep0.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c index 7da25e181889..861a41aa87d2 100644 --- a/drivers/usb/dwc3/ep0.c +++ b/drivers/usb/dwc3/ep0.c | |||
@@ -258,7 +258,8 @@ static void dwc3_ep0_status_cmpl(struct usb_ep *ep, struct usb_request *req) | |||
258 | /* | 258 | /* |
259 | * ch 9.4.5 | 259 | * ch 9.4.5 |
260 | */ | 260 | */ |
261 | static int dwc3_ep0_handle_status(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl) | 261 | static int dwc3_ep0_handle_status(struct dwc3 *dwc, |
262 | struct usb_ctrlrequest *ctrl) | ||
262 | { | 263 | { |
263 | struct dwc3_ep *dep; | 264 | struct dwc3_ep *dep; |
264 | u32 recip; | 265 | u32 recip; |
@@ -285,7 +286,7 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl | |||
285 | case USB_RECIP_ENDPOINT: | 286 | case USB_RECIP_ENDPOINT: |
286 | dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); | 287 | dep = dwc3_wIndex_to_dep(dwc, ctrl->wIndex); |
287 | if (!dep) | 288 | if (!dep) |
288 | return -EINVAL; | 289 | return -EINVAL; |
289 | 290 | ||
290 | if (dep->flags & DWC3_EP_STALL) | 291 | if (dep->flags & DWC3_EP_STALL) |
291 | usb_status = 1 << USB_ENDPOINT_HALT; | 292 | usb_status = 1 << USB_ENDPOINT_HALT; |