diff mbox series

[-next] USB: gadget: udc: s3c2410_udc: s3c2410_udc_set_ep0_ss() can be static

Message ID 20210513050544.625824-1-yangyingliang@huawei.com (mailing list archive)
State Accepted
Commit 9e8d268f831b87891202e8566a0f9acc7adbbc5c
Headers show
Series [-next] USB: gadget: udc: s3c2410_udc: s3c2410_udc_set_ep0_ss() can be static | expand

Commit Message

Yang Yingliang May 13, 2021, 5:05 a.m. UTC
s3c2410_udc_set_ep0_ss() only used within this file. It should be static.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 drivers/usb/gadget/udc/s3c2410_udc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Felipe Balbi May 14, 2021, 7:25 a.m. UTC | #1
Yang Yingliang <yangyingliang@huawei.com> writes:

> s3c2410_udc_set_ep0_ss() only used within this file. It should be static.
>
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>

Acked-by: Felipe Balbi <balbi@kernel.org>
diff mbox series

Patch

diff --git a/drivers/usb/gadget/udc/s3c2410_udc.c b/drivers/usb/gadget/udc/s3c2410_udc.c
index b154b62abefa..902e9c3e940a 100644
--- a/drivers/usb/gadget/udc/s3c2410_udc.c
+++ b/drivers/usb/gadget/udc/s3c2410_udc.c
@@ -198,7 +198,7 @@  static inline void s3c2410_udc_set_ep0_de(void __iomem *base)
 	udc_writeb(base, S3C2410_UDC_EP0_CSR_DE, S3C2410_UDC_EP0_CSR_REG);
 }
 
-inline void s3c2410_udc_set_ep0_ss(void __iomem *b)
+static inline void s3c2410_udc_set_ep0_ss(void __iomem *b)
 {
 	udc_writeb(b, S3C2410_UDC_INDEX_EP0, S3C2410_UDC_INDEX_REG);
 	udc_writeb(b, S3C2410_UDC_EP0_CSR_SENDSTL, S3C2410_UDC_EP0_CSR_REG);