aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Bedarkar <rahulbedarkar89@gmail.com>2014-01-04 00:54:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-07 19:17:40 -0500
commit025d44309f92bd5e3d1b2c7fab66836ab25b541b (patch)
tree261fde505eb086f5077730f678d4f9471b2ab699
parentd7e92f7f768477c6ab5ec6b12f854db3e716b2e5 (diff)
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>
-rw-r--r--drivers/usb/core/buffer.c2
-rw-r--r--drivers/usb/core/devio.c2
-rw-r--r--drivers/usb/core/hcd.c2
-rw-r--r--drivers/usb/core/hub.c7
-rw-r--r--drivers/usb/core/hub.h2
-rw-r--r--drivers/usb/core/message.c4
-rw-r--r--drivers/usb/core/sysfs.c2
-rw-r--r--drivers/usb/core/urb.c4
-rw-r--r--drivers/usb/core/usb-acpi.c2
9 files changed, 14 insertions, 13 deletions
diff --git a/drivers/usb/core/buffer.c b/drivers/usb/core/buffer.c
index 23559746be92..684ef70dc09d 100644
--- a/drivers/usb/core/buffer.c
+++ b/drivers/usb/core/buffer.c
@@ -2,7 +2,7 @@
2 * DMA memory management for framework level HCD code (hc_driver) 2 * DMA memory management for framework level HCD code (hc_driver)
3 * 3 *
4 * This implementation plugs in through generic "usb_bus" level methods, 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#include <linux/module.h> 8#include <linux/module.h>
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 967152a63bd3..90e18f6fa2bb 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -118,7 +118,7 @@ module_param(usbfs_memory_mb, uint, 0644);
118MODULE_PARM_DESC(usbfs_memory_mb, 118MODULE_PARM_DESC(usbfs_memory_mb,
119 "maximum MB allowed for usbfs buffers (0 = no limit)"); 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#define USBFS_XFER_MAX (UINT_MAX / 2 - 1000000) 122#define USBFS_XFER_MAX (UINT_MAX / 2 - 1000000)
123 123
124static atomic_t usbfs_memory_usage; /* Total memory currently allocated */ 124static atomic_t usbfs_memory_usage; /* Total memory currently allocated */
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 6297c9e50de2..199aaea6bfe0 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -1298,7 +1298,7 @@ EXPORT_SYMBOL_GPL(usb_hcd_unlink_urb_from_ep);
1298 * DMA framework is dma_declare_coherent_memory() 1298 * DMA framework is dma_declare_coherent_memory()
1299 * 1299 *
1300 * - So we use that, even though the primary requirement 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 * by that device), not "coherent". 1302 * by that device), not "coherent".
1303 * 1303 *
1304 */ 1304 */
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 9e49c6d6e4a2..c1422a04c991 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2513,7 +2513,7 @@ static bool use_new_scheme(struct usb_device *udev, int retry)
2513static int hub_port_reset(struct usb_hub *hub, int port1, 2513static int hub_port_reset(struct usb_hub *hub, int port1,
2514 struct usb_device *udev, unsigned int delay, bool warm); 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 * Port worm reset is required to recover 2517 * Port worm reset is required to recover
2518 */ 2518 */
2519static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus) 2519static bool hub_port_warm_reset_required(struct usb_hub *hub, u16 portstatus)
@@ -3321,7 +3321,8 @@ static int hub_suspend(struct usb_interface *intf, pm_message_t msg)
3321 3321
3322 udev = hub->ports[port1 - 1]->child; 3322 udev = hub->ports[port1 - 1]->child;
3323 if (udev && udev->can_submit) { 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 if (PMSG_IS_AUTO(msg)) 3326 if (PMSG_IS_AUTO(msg))
3326 return -EBUSY; 3327 return -EBUSY;
3327 } 3328 }
@@ -4912,7 +4913,7 @@ static void hub_events(void)
4912 4913
4913static int hub_thread(void *__unused) 4914static int hub_thread(void *__unused)
4914{ 4915{
4915 /* khubd needs to be freezable to avoid intefering with USB-PERSIST 4916 /* khubd needs to be freezable to avoid interfering with USB-PERSIST
4916 * port handover. Otherwise it might see that a full-speed device 4917 * port handover. Otherwise it might see that a full-speed device
4917 * was gone before the EHCI controller had handed its port over to 4918 * was gone before the EHCI controller had handed its port over to
4918 * the companion full-speed controller. 4919 * the companion full-speed controller.
diff --git a/drivers/usb/core/hub.h b/drivers/usb/core/hub.h
index 4e4790dea343..df629a310e44 100644
--- a/drivers/usb/core/hub.h
+++ b/drivers/usb/core/hub.h
@@ -78,7 +78,7 @@ struct usb_hub {
78 78
79/** 79/**
80 * struct usb port - kernel's representation of a usb port 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 * @dev: generic device interface 82 * @dev: generic device interface
83 * @port_owner: port's owner 83 * @port_owner: port's owner
84 * @connect_type: port's connect type 84 * @connect_type: port's connect type
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
index bb315970e475..854a41972085 100644
--- a/drivers/usb/core/message.c
+++ b/drivers/usb/core/message.c
@@ -218,7 +218,7 @@ EXPORT_SYMBOL_GPL(usb_interrupt_msg);
218 * 218 *
219 * Return: 219 * Return:
220 * If successful, 0. Otherwise a negative error number. The number of actual 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 */
224int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe, 224int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
@@ -518,7 +518,7 @@ void usb_sg_wait(struct usb_sg_request *io)
518 io->urbs[i]->dev = io->dev; 518 io->urbs[i]->dev = io->dev;
519 retval = usb_submit_urb(io->urbs[i], GFP_ATOMIC); 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 * we handshake using io->status. 522 * we handshake using io->status.
523 */ 523 */
524 spin_unlock_irq(&io->lock); 524 spin_unlock_irq(&io->lock);
diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
index 52a97adf02a0..1236c6011c70 100644
--- a/drivers/usb/core/sysfs.c
+++ b/drivers/usb/core/sysfs.c
@@ -837,7 +837,7 @@ void usb_remove_sysfs_dev_files(struct usb_device *udev)
837 device_remove_bin_file(dev, &dev_bin_attr_descriptors); 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#define usb_intf_assoc_attr(field, format_string) \ 841#define usb_intf_assoc_attr(field, format_string) \
842static ssize_t \ 842static ssize_t \
843iad_##field##_show(struct device *dev, struct device_attribute *attr, \ 843iad_##field##_show(struct device *dev, struct device_attribute *attr, \
diff --git a/drivers/usb/core/urb.c b/drivers/usb/core/urb.c
index f4cb7fc1c929..172d2698b8db 100644
--- a/drivers/usb/core/urb.c
+++ b/drivers/usb/core/urb.c
@@ -53,7 +53,7 @@ EXPORT_SYMBOL_GPL(usb_init_urb);
53 * valid options for this. 53 * valid options for this.
54 * 54 *
55 * Creates an urb for the USB driver to use, initializes a few internal 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 * If the driver want to use this urb for interrupt, control, or bulk 58 * If the driver want to use this urb for interrupt, control, or bulk
59 * endpoints, pass '0' as the number of iso packets. 59 * endpoints, pass '0' as the number of iso packets.
@@ -281,7 +281,7 @@ EXPORT_SYMBOL_GPL(usb_unanchor_urb);
281 * 281 *
282 * Device drivers must explicitly request that repetition, by ensuring that 282 * Device drivers must explicitly request that repetition, by ensuring that
283 * some URB is always on the endpoint's queue (except possibly for short 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 * queued, the endpoint's bandwidth reservation is canceled. This means 285 * queued, the endpoint's bandwidth reservation is canceled. This means
286 * drivers can use their completion handlers to ensure they keep bandwidth 286 * drivers can use their completion handlers to ensure they keep bandwidth
287 * they need, by reinitializing and resubmitting the just-completed urb 287 * they need, by reinitializing and resubmitting the just-completed urb
diff --git a/drivers/usb/core/usb-acpi.c b/drivers/usb/core/usb-acpi.c
index 4e243c37f17f..d7cb822d6eab 100644
--- a/drivers/usb/core/usb-acpi.c
+++ b/drivers/usb/core/usb-acpi.c
@@ -92,7 +92,7 @@ static int usb_acpi_check_port_connect_type(struct usb_device *hdev,
92 int ret = 0; 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 * user visible and _UPC indicates whether it is connectable. If 96 * user visible and _UPC indicates whether it is connectable. If
97 * the port was visible and connectable, it could be freely connected 97 * the port was visible and connectable, it could be freely connected
98 * and disconnected with USB devices. If no visible and connectable, 98 * and disconnected with USB devices. If no visible and connectable,