usb: gadget: pch_udc: fix typos in comments
PATCH 1/1 usb: gadget: pch_udc: fix typos in comments
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 <[email protected]>
--- drivers/usb/gadget/udc/pch_udc.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
drivers/usb/gadget/udc/pch_udc.c +12 -12
@@ -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) |
Signature · 1 line
2.53.0