Commit 8becf270 authored by Felipe Balbi's avatar Felipe Balbi

usb: dwc3: fix sparse errors

sparse caught three mistakes on this driver,
fix them:

drivers/usb/dwc3/ep0.c:806:29: warning: duplicate const
drivers/usb/dwc3/debugfs.c:481:15: warning: symbol 'dwc3_debugfs_init' \
	was not declared. Should it be static?
drivers/usb/dwc3/debugfs.c:518:16: warning: symbol 'dwc3_debugfs_exit' \
	was not declared. Should it be static?
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 25b8ff68
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
#include "core.h" #include "core.h"
#include "gadget.h" #include "gadget.h"
#include "io.h" #include "io.h"
#include "debug.h"
struct dwc3_register { struct dwc3_register {
const char *name; const char *name;
......
...@@ -803,7 +803,7 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc, ...@@ -803,7 +803,7 @@ static void dwc3_ep0_xfernotready(struct dwc3 *dwc,
} }
void dwc3_ep0_interrupt(struct dwc3 *dwc, void dwc3_ep0_interrupt(struct dwc3 *dwc,
const const struct dwc3_event_depevt *event) const struct dwc3_event_depevt *event)
{ {
u8 epnum = event->endpoint_number; u8 epnum = event->endpoint_number;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment