projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531ef5e
)
usb: dwc2: Make dwc2_force_mode() static
author
Grigor Tovmasyan
<Grigor.Tovmasyan@synopsys.com>
Fri, 19 Jan 2018 10:43:01 +0000
(14:43 +0400)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 13 Mar 2018 08:47:58 +0000
(10:47 +0200)
Declared dwc2_force_mode() function as static, because it was used
only in core.c file, for fixing sparse error.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/core.c
b/drivers/usb/dwc2/core.c
index cf1faf2443d0e4a7a689cc37a8c6c22f3b53646c..18a0a17712890f4b17010c80e978e8f1460b9baa 100644
(file)
--- a/
drivers/usb/dwc2/core.c
+++ b/
drivers/usb/dwc2/core.c
@@
-611,7
+611,7
@@
void dwc2_force_mode(struct dwc2_hsotg *hsotg, bool host)
* the force mode. We only need to call this once during probe if
* dr_mode == OTG.
*/
-void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg)
+
static
void dwc2_clear_force_mode(struct dwc2_hsotg *hsotg)
{
u32 gusbcfg;