Commit 25051b55 authored by Wei Yongjun's avatar Wei Yongjun Committed by Greg Kroah-Hartman

udc: lpc32xx: make symbol 'lpc32xx_usbddata' static

The sparse tool complains as follows:

drivers/usb/gadget/udc/lpc32xx_udc.c:2989:25: warning:
 symbol 'lpc32xx_usbddata' was not declared. Should it be static?

This variable is not used outside of lpc32xx_udc.c, so this commit
marks it static.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Link: https://lore.kernel.org/r/20200707105350.7064-1-weiyongjun1@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a74005ab
...@@ -2986,7 +2986,7 @@ static void lpc32xx_rmwkup_chg(int remote_wakup_enable) ...@@ -2986,7 +2986,7 @@ static void lpc32xx_rmwkup_chg(int remote_wakup_enable)
/* Enable or disable USB remote wakeup */ /* Enable or disable USB remote wakeup */
} }
struct lpc32xx_usbd_cfg lpc32xx_usbddata = { static struct lpc32xx_usbd_cfg lpc32xx_usbddata = {
.vbus_drv_pol = 0, .vbus_drv_pol = 0,
.conn_chgb = &lpc32xx_usbd_conn_chg, .conn_chgb = &lpc32xx_usbd_conn_chg,
.susp_chgb = &lpc32xx_usbd_susp_chg, .susp_chgb = &lpc32xx_usbd_susp_chg,
......
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