mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Zain Aboobacker <zainaboobacker33@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH] usb: gadget: pch_udc: fix typos in comments
Date: Sat, 26 Sep 2026 12:25:23 -0400	[thread overview]
Message-ID: <20260926162523.25335-1-zainaboobacker33@gmail.com> (raw)

Fix various spelling mistakes in comments and kernel-doc found by
codespell.

Assisted-by: Claude:claude-opus-5-5 codespell
Signed-off-by: Zain Aboobacker <zainaboobacker33@gmail.com>
---
 drivers/usb/gadget/udc/pch_udc.c | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/drivers/usb/gadget/udc/pch_udc.c b/drivers/usb/gadget/udc/pch_udc.c
index 99b3ce28210f..e8ad452a852f 100644
--- a/drivers/usb/gadget/udc/pch_udc.c
+++ b/drivers/usb/gadget/udc/pch_udc.c
@@ -53,7 +53,7 @@
 #define UDC_EPCTL_F			(1 << 1)
 #define UDC_EPCTL_S			(1 << 0)
 #define UDC_EPCTL_ET_SHIFT		4
-/* Mask patern */
+/* Mask pattern */
 #define UDC_EPCTL_ET_MASK		0x00000030
 /* Value for ET field */
 #define UDC_EPCTL_ET_CONTROL		0
@@ -73,7 +73,7 @@
 #define UDC_EPSTS_BNA			(1 << 7)
 #define UDC_EPSTS_IN			(1 << 6)
 #define UDC_EPSTS_OUT_SHIFT		4
-/* Mask patern */
+/* Mask pattern */
 #define UDC_EPSTS_OUT_MASK		0x00000030
 #define UDC_EPSTS_ALL_CLR_MASK		0x1F0006F0
 /* Value for OUT field */
@@ -110,7 +110,7 @@
 #define UDC_DEVSTS_ALT_SHIFT		8
 #define UDC_DEVSTS_INTF_SHIFT		4
 #define UDC_DEVSTS_CFG_SHIFT		0
-/* Mask patern */
+/* Mask pattern */
 #define UDC_DEVSTS_TS_MASK		0xfffc0000
 #define UDC_DEVSTS_ENUM_SPEED_MASK	0x00006000
 #define UDC_DEVSTS_ALT_MASK		0x00000f00
@@ -132,7 +132,7 @@
 #define UDC_DEVINT_ES			(1 << 2)
 #define UDC_DEVINT_SI			(1 << 1)
 #define UDC_DEVINT_SC			(1 << 0)
-/* Mask patern */
+/* Mask pattern */
 #define UDC_DEVINT_MSK			0x7f
 
 /* Endpoint irq register */
@@ -141,7 +141,7 @@
 #define UDC_EPINT_OUT_SHIFT		16
 #define UDC_EPINT_IN_EP0		(1 << 0)
 #define UDC_EPINT_OUT_EP0		(1 << 16)
-/* Mask patern */
+/* Mask pattern */
 #define UDC_EPINT_MSK_DISABLE_ALL	0xffffffff
 
 /* UDC_CSR_BUSY Status register */
@@ -162,7 +162,7 @@
 #define UDC_CSR_NE_INTF_SHIFT		11
 #define UDC_CSR_NE_ALT_SHIFT		15
 #define UDC_CSR_NE_MAX_PKT_SHIFT	19
-/* Mask patern */
+/* Mask pattern */
 #define UDC_CSR_NE_NUM_MASK		0x0000000f
 #define UDC_CSR_NE_DIR_MASK		0x00000010
 #define UDC_CSR_NE_TYPE_MASK		0x00000060
@@ -296,7 +296,7 @@ struct pch_udc_ep {
 };
 
 /**
- * struct pch_vbus_gpio_data - Structure holding GPIO informaton
+ * struct pch_vbus_gpio_data - Structure holding GPIO information
  *					for detecting VBUS
  * @port:		gpio descriptor for the VBUS GPIO
  * @intr:		gpio interrupt number
@@ -319,7 +319,7 @@ struct pch_vbus_gpio_data {
  * @ep:			array of endpoints
  * @lock:		protects all state
  * @stall:		stall requested
- * @prot_stall:		protcol stall requested
+ * @prot_stall:		protocol stall requested
  * @suspended:		driver in suspended state
  * @connected:		gadget driver associated
  * @vbus_session:	required vbus_session state
@@ -332,7 +332,7 @@ struct pch_vbus_gpio_data {
  * @base_addr:		for mapped device memory
  * @bar:		PCI BAR used for mapped device memory
  * @cfg_data:		current cfg, intf, and alt in use
- * @vbus_gpio:		GPIO informaton for detecting VBUS
+ * @vbus_gpio:		GPIO information for detecting VBUS
  */
 struct pch_udc_dev {
 	struct usb_gadget		gadget;
@@ -846,7 +846,7 @@ static inline u32 pch_udc_read_ep_interrupts(struct pch_udc_dev *dev)
 }
 
 /**
- * pch_udc_write_ep_interrupts() - Clear endpoint interupts
+ * pch_udc_write_ep_interrupts() - Clear endpoint interrupts
  * @dev:	Reference to structure of type pch_udc_regs
  * @val:	The value to be written to interrupt register
  */
@@ -1064,7 +1064,7 @@ static void pch_udc_init(struct pch_udc_dev *dev)
 	if (speed_fs)
 		pch_udc_bit_set(dev, UDC_DEVCFG_ADDR, UDC_DEVCFG_CSR_PRG |
 				UDC_DEVCFG_SP | UDC_DEVCFG_SPD_FS);
-	else /* defaul high speed */
+	else /* default high speed */
 		pch_udc_bit_set(dev, UDC_DEVCFG_ADDR, UDC_DEVCFG_CSR_PRG |
 				UDC_DEVCFG_SP | UDC_DEVCFG_SPD_HS);
 	pch_udc_bit_set(dev, UDC_DEVCTL_ADDR,
@@ -2569,7 +2569,7 @@ static void pch_udc_svc_intf_interrupt(struct pch_udc_dev *dev)
 	dev->setup_data.bRequestType = USB_RECIP_INTERFACE;
 	dev->setup_data.wValue = cpu_to_le16(dev->cfg_data.cur_alt);
 	dev->setup_data.wIndex = cpu_to_le16(dev->cfg_data.cur_intf);
-	/* programm the Endpoint Cfg registers */
+	/* program the Endpoint Cfg registers */
 	/* Only one end point cfg register */
 	reg = pch_udc_read_csr(dev, UDC_EP0OUT_IDX);
 	reg = (reg & ~UDC_CSR_NE_INTF_MASK) |
-- 
2.53.0


                 reply	other threads:[~2026-09-26 16:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260926162523.25335-1-zainaboobacker33@gmail.com \
    --to=zainaboobacker33@gmail.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®