diff options
author | John Youn <John.Youn@synopsys.com> | 2017-01-17 23:30:27 -0500 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-01-24 04:04:18 -0500 |
commit | 9da5197475a09e51a467388308f14dcbdcee8ba9 (patch) | |
tree | b1c4aa514bacc1abbd33b6cdffcb04db3e0b1908 /drivers/usb/dwc2/core_intr.c | |
parent | 33e4c1a9987a1fc3b42c3b534100b5b006d55c61 (diff) |
usb: dwc2: Cleanup some checkpatch issues
This commmit is the result of running checkpatch --fix.
The results were verified for correctness. Some of the fixes result in
line over 80 char which we will fix manually later.
The following is a summary of what was done by checkpatch:
* Remove externs on function prototypes.
* Replace symbolic permissions with octal.
* Align code to open parens.
* Replace 'unsigned' with 'unsigned int'.
* Remove unneccessary blank lines.
* Add blank lines after declarations.
* Add spaces around operators.
* Remove unnecessary spaces after casts.
* Replace 'x == NULL' with '!x'.
* Replace kzalloc() with kcalloc().
* Concatenate multi-line strings.
* Use the BIT() macro.
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/core_intr.c')
-rw-r--r-- | drivers/usb/dwc2/core_intr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c index 5b228ba6045f..0d4a2aaaa5dd 100644 --- a/drivers/usb/dwc2/core_intr.c +++ b/drivers/usb/dwc2/core_intr.c | |||
@@ -317,7 +317,7 @@ static void dwc2_handle_session_req_intr(struct dwc2_hsotg *hsotg) | |||
317 | dwc2_writel(GINTSTS_SESSREQINT, hsotg->regs + GINTSTS); | 317 | dwc2_writel(GINTSTS_SESSREQINT, hsotg->regs + GINTSTS); |
318 | 318 | ||
319 | dev_dbg(hsotg->dev, "Session request interrupt - lx_state=%d\n", | 319 | dev_dbg(hsotg->dev, "Session request interrupt - lx_state=%d\n", |
320 | hsotg->lx_state); | 320 | hsotg->lx_state); |
321 | 321 | ||
322 | if (dwc2_is_device_mode(hsotg)) { | 322 | if (dwc2_is_device_mode(hsotg)) { |
323 | if (hsotg->lx_state == DWC2_L2) { | 323 | if (hsotg->lx_state == DWC2_L2) { |
@@ -437,7 +437,7 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) | |||
437 | /* Ignore suspend request before enumeration */ | 437 | /* Ignore suspend request before enumeration */ |
438 | if (!dwc2_is_device_connected(hsotg)) { | 438 | if (!dwc2_is_device_connected(hsotg)) { |
439 | dev_dbg(hsotg->dev, | 439 | dev_dbg(hsotg->dev, |
440 | "ignore suspend request before enumeration\n"); | 440 | "ignore suspend request before enumeration\n"); |
441 | return; | 441 | return; |
442 | } | 442 | } |
443 | 443 | ||
@@ -445,7 +445,7 @@ static void dwc2_handle_usb_suspend_intr(struct dwc2_hsotg *hsotg) | |||
445 | if (ret) { | 445 | if (ret) { |
446 | if (ret != -ENOTSUPP) | 446 | if (ret != -ENOTSUPP) |
447 | dev_err(hsotg->dev, | 447 | dev_err(hsotg->dev, |
448 | "enter hibernation failed\n"); | 448 | "enter hibernation failed\n"); |
449 | goto skip_power_saving; | 449 | goto skip_power_saving; |
450 | } | 450 | } |
451 | 451 | ||