Commit 7650778e authored by Zou Wei's avatar Zou Wei Committed by Peter Chen

usb: cdnsp: Mark cdnsp_gadget_ops with static keyword

Fix the following sparse warning:

drivers/usb/cdns3/cdnsp-gadget.c:1546:29: warning: symbol 'cdnsp_gadget_ops' was not declared. Should it be static?
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent bbf60dae
...@@ -1543,7 +1543,7 @@ static int cdnsp_gadget_pullup(struct usb_gadget *gadget, int is_on) ...@@ -1543,7 +1543,7 @@ static int cdnsp_gadget_pullup(struct usb_gadget *gadget, int is_on)
return 0; return 0;
} }
const struct usb_gadget_ops cdnsp_gadget_ops = { static const struct usb_gadget_ops cdnsp_gadget_ops = {
.get_frame = cdnsp_gadget_get_frame, .get_frame = cdnsp_gadget_get_frame,
.wakeup = cdnsp_gadget_wakeup, .wakeup = cdnsp_gadget_wakeup,
.set_selfpowered = cdnsp_gadget_set_selfpowered, .set_selfpowered = cdnsp_gadget_set_selfpowered,
......
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