mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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>
This commit is contained in:
parent
33e4c1a998
commit
9da5197475
15 changed files with 520 additions and 526 deletions
|
@ -111,7 +111,7 @@ static int dwc2_get_dr_mode(struct dwc2_hsotg *hsotg)
|
|||
|
||||
if (mode != hsotg->dr_mode) {
|
||||
dev_warn(hsotg->dev,
|
||||
"Configuration mismatch. dr_mode forced to %s\n",
|
||||
"Configuration mismatch. dr_mode forced to %s\n",
|
||||
mode == USB_DR_MODE_HOST ? "host" : "device");
|
||||
|
||||
hsotg->dr_mode = mode;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue