Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b6c3b0f authored by Felipe Balbi's avatar Felipe Balbi Committed by Greg Kroah-Hartman
Browse files

USB: musb: musb_gadget: fix sparse warning



Fix the following sparse warnings:

drivers/usb/musb/musb_gadget.c:1161:5: warning: symbol 'musb_gadget_set_halt' was not declared. Should it be static?

drivers/usb/musb/musb_gadget.c:1244:5: warning: symbol 'musb_gadget_set_wedge' was not declared. Should it be static?

Signed-off-by: default avatarFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ff85494b
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1211,7 +1211,7 @@ done:
 *
 *
 * exported to ep0 code
 * exported to ep0 code
 */
 */
int musb_gadget_set_halt(struct usb_ep *ep, int value)
static int musb_gadget_set_halt(struct usb_ep *ep, int value)
{
{
	struct musb_ep		*musb_ep = to_musb_ep(ep);
	struct musb_ep		*musb_ep = to_musb_ep(ep);
	u8			epnum = musb_ep->current_epnum;
	u8			epnum = musb_ep->current_epnum;
@@ -1296,7 +1296,7 @@ done:
/*
/*
 * Sets the halt feature with the clear requests ignored
 * Sets the halt feature with the clear requests ignored
 */
 */
int musb_gadget_set_wedge(struct usb_ep *ep)
static int musb_gadget_set_wedge(struct usb_ep *ep)
{
{
	struct musb_ep		*musb_ep = to_musb_ep(ep);
	struct musb_ep		*musb_ep = to_musb_ep(ep);