Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: core: correct spelling mistakes in comments and warning

Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Rahul Bedarkar and committed by
Greg Kroah-Hartman
025d4430 d7e92f7f

+14 -13
+1 -1
drivers/usb/core/buffer.c
··· 2 2 * DMA memory management for framework level HCD code (hc_driver) 3 3 * 4 4 * This implementation plugs in through generic "usb_bus" level methods, 5 - * and should work with all USB controllers, regardles of bus type. 5 + * and should work with all USB controllers, regardless of bus type. 6 6 */ 7 7 8 8 #include <linux/module.h>
+1 -1
drivers/usb/core/devio.c
··· 118 118 MODULE_PARM_DESC(usbfs_memory_mb, 119 119 "maximum MB allowed for usbfs buffers (0 = no limit)"); 120 120 121 - /* Hard limit, necessary to avoid aithmetic overflow */ 121 + /* Hard limit, necessary to avoid arithmetic overflow */ 122 122 #define USBFS_XFER_MAX (UINT_MAX / 2 - 1000000) 123 123 124 124 static atomic_t usbfs_memory_usage; /* Total memory currently allocated */
+1 -1
drivers/usb/core/hcd.c
··· 1298 1298 * DMA framework is dma_declare_coherent_memory() 1299 1299 * 1300 1300 * - So we use that, even though the primary requirement 1301 - * is that the memory be "local" (hence addressible 1301 + * is that the memory be "local" (hence addressable 1302 1302 * by that device), not "coherent". 1303 1303 * 1304 1304 */
+4 -3
drivers/usb/core/hub.c
··· 2513 2513 static int hub_port_reset(struct usb_hub *hub, int port1, 2514 2514 struct usb_device *udev, unsigned int delay, bool warm); 2515 2515 2516 - /* Is a USB 3.0 port in the Inactive or Complinance Mode state? 2516 + /* Is a USB 3.0 port in the Inactive or Compliance Mode state? 2517 2517 * Port worm reset is required to recover 2518 2518 */ 2519 2519 static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus) ··· 3321 3321 3322 3322 udev = hub->ports[port1 - 1]->child; 3323 3323 if (udev && udev->can_submit) { 3324 - dev_warn(&intf->dev, "port %d nyet suspended\n", port1); 3324 + dev_warn(&intf->dev, "port %d not suspended yet\n", 3325 + port1); 3325 3326 if (PMSG_IS_AUTO(msg)) 3326 3327 return -EBUSY; 3327 3328 } ··· 4913 4912 4914 4913 static int hub_thread(void *__unused) 4915 4914 { 4916 - /* khubd needs to be freezable to avoid intefering with USB-PERSIST 4915 + /* khubd needs to be freezable to avoid interfering with USB-PERSIST 4917 4916 * port handover. Otherwise it might see that a full-speed device 4918 4917 * was gone before the EHCI controller had handed its port over to 4919 4918 * the companion full-speed controller.
+1 -1
drivers/usb/core/hub.h
··· 78 78 79 79 /** 80 80 * struct usb port - kernel's representation of a usb port 81 - * @child: usb device attatched to the port 81 + * @child: usb device attached to the port 82 82 * @dev: generic device interface 83 83 * @port_owner: port's owner 84 84 * @connect_type: port's connect type
+2 -2
drivers/usb/core/message.c
··· 218 218 * 219 219 * Return: 220 220 * If successful, 0. Otherwise a negative error number. The number of actual 221 - * bytes transferred will be stored in the @actual_length paramater. 221 + * bytes transferred will be stored in the @actual_length parameter. 222 222 * 223 223 */ 224 224 int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, ··· 518 518 io->urbs[i]->dev = io->dev; 519 519 retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC); 520 520 521 - /* after we submit, let completions or cancelations fire; 521 + /* after we submit, let completions or cancellations fire; 522 522 * we handshake using io->status. 523 523 */ 524 524 spin_unlock_irq(&io->lock);
+1 -1
drivers/usb/core/sysfs.c
··· 837 837 device_remove_bin_file(dev, &dev_bin_attr_descriptors); 838 838 } 839 839 840 - /* Interface Accociation Descriptor fields */ 840 + /* Interface Association Descriptor fields */ 841 841 #define usb_intf_assoc_attr(field, format_string) \ 842 842 static ssize_t \ 843 843 iad_##field##_show(struct device *dev, struct device_attribute *attr, \
+2 -2
drivers/usb/core/urb.c
··· 53 53 * valid options for this. 54 54 * 55 55 * Creates an urb for the USB driver to use, initializes a few internal 56 - * structures, incrementes the usage counter, and returns a pointer to it. 56 + * structures, increments the usage counter, and returns a pointer to it. 57 57 * 58 58 * If the driver want to use this urb for interrupt, control, or bulk 59 59 * endpoints, pass '0' as the number of iso packets. ··· 281 281 * 282 282 * Device drivers must explicitly request that repetition, by ensuring that 283 283 * some URB is always on the endpoint's queue (except possibly for short 284 - * periods during completion callacks). When there is no longer an urb 284 + * periods during completion callbacks). When there is no longer an urb 285 285 * queued, the endpoint's bandwidth reservation is canceled. This means 286 286 * drivers can use their completion handlers to ensure they keep bandwidth 287 287 * they need, by reinitializing and resubmitting the just-completed urb
+1 -1
drivers/usb/core/usb-acpi.c
··· 92 92 int ret = 0; 93 93 94 94 /* 95 - * Accoding to ACPI Spec 9.13. PLD indicates whether usb port is 95 + * According to ACPI Spec 9.13. PLD indicates whether usb port is 96 96 * user visible and _UPC indicates whether it is connectable. If 97 97 * the port was visible and connectable, it could be freely connected 98 98 * and disconnected with USB devices. If no visible and connectable,