mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 21:04:42 -04:00
usb: gadget: udc: fix typo in the comment
Correctly spelled comments make it easier for the reader to understand the code. Fix typos: 'trasmit' -> 'transmit', 'structres' -> 'structures', 'divisble' -> 'divisible', 'trainsmited' -> 'transmitted', 'packect's' -> 'packet's', 'timmer' -> 'timer', 'devcice' -> 'device', 'delelate' -> 'delegate', 'lengh' -> 'length'. Signed-off-by: Yan Zhen <yanzhen@vivo.com> Link: https://lore.kernel.org/r/20240920084708.1967059-1-yanzhen@vivo.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
5c667ba72d
commit
3fbdc0e8d9
@@ -156,7 +156,7 @@
|
||||
#define AST_EP_DMA_DESC_PID_DATA1 (2 << 14)
|
||||
#define AST_EP_DMA_DESC_PID_MDATA (3 << 14)
|
||||
#define EP_DESC1_IN_LEN(x) ((x) & 0x1fff)
|
||||
#define AST_EP_DMA_DESC_MAX_LEN (7680) /* Max packet length for trasmit in 1 desc */
|
||||
#define AST_EP_DMA_DESC_MAX_LEN (7680) /* Max packet length for transmit in 1 desc */
|
||||
|
||||
struct ast_udc_request {
|
||||
struct usb_request req;
|
||||
|
||||
@@ -80,7 +80,7 @@ module_param_named(num, mod_data.num, uint, S_IRUGO);
|
||||
MODULE_PARM_DESC(num, "number of emulated controllers");
|
||||
/*-------------------------------------------------------------------------*/
|
||||
|
||||
/* gadget side driver data structres */
|
||||
/* gadget side driver data structures */
|
||||
struct dummy_ep {
|
||||
struct list_head queue;
|
||||
unsigned long last_io; /* jiffies timestamp */
|
||||
|
||||
@@ -511,7 +511,7 @@ static int qe_ep_register_init(struct qe_udc *udc, unsigned char pipe_num)
|
||||
out_8(&epparam->tbmr, rtfcr);
|
||||
|
||||
tmp = (u16)(ep->ep.maxpacket + USB_CRC_SIZE);
|
||||
/* MRBLR must be divisble by 4 */
|
||||
/* MRBLR must be divisible by 4 */
|
||||
tmp = (u16)(((tmp >> 2) << 2) + 4);
|
||||
out_be16(&epparam->mrblr, tmp);
|
||||
|
||||
@@ -1413,7 +1413,7 @@ static int ep_txframe_handle(struct qe_ep *ep)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* confirm the already trainsmited bd */
|
||||
/* confirm the already transmitted bd */
|
||||
static int qe_ep_txconf(struct qe_ep *ep)
|
||||
{
|
||||
struct qe_bd __iomem *bd;
|
||||
@@ -2196,7 +2196,7 @@ static int tx_irq(struct qe_udc *udc)
|
||||
}
|
||||
|
||||
|
||||
/* setup packect's rx is handle in the function too */
|
||||
/* setup packet's rx is handle in the function too */
|
||||
static void rx_irq(struct qe_udc *udc)
|
||||
{
|
||||
struct qe_ep *ep;
|
||||
|
||||
@@ -1297,7 +1297,7 @@ static void init_controller(struct fusb300 *fusb300)
|
||||
reg |= val;
|
||||
iowrite32(reg, fusb300->reg + FUSB300_OFFSET_HSCR);
|
||||
|
||||
/*set u1 u2 timmer*/
|
||||
/*set u1 u2 timer*/
|
||||
fusb300_set_u2_timeout(fusb300, 0xff);
|
||||
fusb300_set_u1_timeout(fusb300, 0xff);
|
||||
|
||||
|
||||
@@ -2097,7 +2097,7 @@ static irqreturn_t net2272_irq(int irq, void *_dev)
|
||||
}
|
||||
/* check dma interrupts */
|
||||
#endif
|
||||
/* Platform/devcice interrupt handler */
|
||||
/* Platform/device interrupt handler */
|
||||
#if !defined(PLX_PCI_RDK)
|
||||
net2272_handle_stat1_irqs(dev, net2272_read(dev, IRQSTAT1));
|
||||
net2272_handle_stat0_irqs(dev, net2272_read(dev, IRQSTAT0));
|
||||
|
||||
@@ -2482,7 +2482,7 @@ static int usbf_handle_ep0_setup(struct usbf_ep *ep0)
|
||||
ep0->delayed_status = 0;
|
||||
|
||||
if ((crq.ctrlreq.bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD) {
|
||||
/* This is not a USB standard request -> delelate */
|
||||
/* This is not a USB standard request -> delegate */
|
||||
goto delegate;
|
||||
}
|
||||
|
||||
|
||||
@@ -2707,7 +2707,7 @@ static irqreturn_t udc_control_in_isr(struct udc *dev)
|
||||
/* write fifo */
|
||||
udc_txfifo_write(ep, &req->req);
|
||||
|
||||
/* lengh bytes transferred */
|
||||
/* length bytes transferred */
|
||||
len = req->req.length - req->req.actual;
|
||||
if (len > ep->ep.maxpacket)
|
||||
len = ep->ep.maxpacket;
|
||||
|
||||
Reference in New Issue
Block a user