summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorGrigor Tovmasyan <Grigor.Tovmasyan@synopsys.com>2018-01-19 11:43:01 +0100
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-03-13 09:47:58 +0100
commit365b7673c34fed58b0a04ee4a7a51102c65ccd2e (patch)
treee766c37d4ee29d6844440a1997a143d76fe10a4a /drivers/usb
parentusb: dwc2: add support for host mode external vbus supply (diff)
downloadlinux-365b7673c34fed58b0a04ee4a7a51102c65ccd2e.tar.xz
linux-365b7673c34fed58b0a04ee4a7a51102c65ccd2e.zip
usb: dwc2: Make dwc2_force_mode() static
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc2/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
index cf1faf2443d0..18a0a1771289 100644
--- 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;