[PATCH] usb: fix comment typos
shitao
shitao at kylinos.cn
Mon Dec 11 23:45:57 PST 2023
Fix two comment typos in usb module files.
Reported-by: k2ci <kernel-bot at kylinos.cn>
Signed-off-by: shitao <shitao at kylinos.cn>
---
drivers/usb/gadget/udc/bdc/bdc_core.c | 2 +-
drivers/usb/mtu3/mtu3_qmu.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/udc/bdc/bdc_core.c b/drivers/usb/gadget/udc/bdc/bdc_core.c
index 35a652807fca..874122f8baa3 100644
--- a/drivers/usb/gadget/udc/bdc/bdc_core.c
+++ b/drivers/usb/gadget/udc/bdc/bdc_core.c
@@ -361,7 +361,7 @@ int bdc_reinit(struct bdc *bdc)
return ret;
}
-/* Allocate all the dyanmic memory */
+/* Allocate all the dynamic memory */
static int bdc_mem_alloc(struct bdc *bdc)
{
u32 page_size;
diff --git a/drivers/usb/mtu3/mtu3_qmu.c b/drivers/usb/mtu3/mtu3_qmu.c
index 3d77408e3133..03f26589b056 100644
--- a/drivers/usb/mtu3/mtu3_qmu.c
+++ b/drivers/usb/mtu3/mtu3_qmu.c
@@ -221,7 +221,7 @@ static struct qmu_gpd *advance_deq_gpd(struct mtu3_gpd_ring *ring)
return ring->dequeue;
}
-/* check if a ring is emtpy */
+/* check if a ring is empty */
static bool gpd_ring_empty(struct mtu3_gpd_ring *ring)
{
struct qmu_gpd *enq = ring->enqueue;
--
2.34.1
More information about the Linux-mediatek
mailing list