[<prev] [next>] [day] [month] [year] [list]
Message-ID: <0847aa44-d490-402e-97fb-6d6e23d3fcd0@US01WEHTC1.internal.synopsys.com>
Date: Wed, 6 Dec 2017 19:27:01 +0400
From: Grigor Tovmasyan <Grigor.Tovmasyan@...opsys.com>
To: John Youn <John.Youn@...opsys.com>,
Felipe Balbi <balbi@...nel.org>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
<linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>
CC: Grigor Tovmasyan <Grigor.Tovmasyan@...opsys.com>
Subject: [PATCH] usb: dwc2: Make function static
Declared dwc2_force_mode() function as static, because it was used
only in core.c file, for fixing sparse error.
Signed-off-by: Grigor Tovmasyan <tovmasya@...opsys.com>
---
drivers/usb/dwc2/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/core.c b/drivers/usb/dwc2/core.c
index dbca3b8890da..c405a77a8edf 100644
--- a/drivers/usb/dwc2/core.c
+++ b/drivers/usb/dwc2/core.c
@@ -446,7 +446,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;
--
2.11.0
Powered by blists - more mailing lists