aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRahul Bedarkar <rahulbedarkar89@gmail.com>2014-01-02 08:59:24 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-01-03 15:39:31 -0500
commitcd8c50532a42065339be1fe550e66b89d7ffd14f (patch)
treeba0cd2ce8f06894ad92be05dc7fae410589a5bd3
parent5ae477b05fb5edd059f709ff0a7a2f40fb2827d1 (diff)
USB: serial: correct spelling mistakes in comments
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/serial/aircable.c10
-rw-r--r--drivers/usb/serial/ark3116.c4
-rw-r--r--drivers/usb/serial/belkin_sa.c2
-rw-r--r--drivers/usb/serial/cyberjack.c2
-rw-r--r--drivers/usb/serial/garmin_gps.c4
-rw-r--r--drivers/usb/serial/iuu_phoenix.c2
-rw-r--r--drivers/usb/serial/keyspan.c2
-rw-r--r--drivers/usb/serial/keyspan_usa26msg.h2
-rw-r--r--drivers/usb/serial/mos7720.c8
-rw-r--r--drivers/usb/serial/opticon.c4
-rw-r--r--drivers/usb/serial/visor.h2
-rw-r--r--drivers/usb/serial/zte_ev.c20
12 files changed, 31 insertions, 31 deletions
diff --git a/drivers/usb/serial/aircable.c b/drivers/usb/serial/aircable.c
index 6e320cec397d..80a9845cd93f 100644
--- a/drivers/usb/serial/aircable.c
+++ b/drivers/usb/serial/aircable.c
@@ -10,9 +10,9 @@
10 * 10 *
11 * The device works as an standard CDC device, it has 2 interfaces, the first 11 * The device works as an standard CDC device, it has 2 interfaces, the first
12 * one is for firmware access and the second is the serial one. 12 * one is for firmware access and the second is the serial one.
13 * The protocol is very simply, there are two posibilities reading or writing. 13 * The protocol is very simply, there are two possibilities reading or writing.
14 * When writing the first urb must have a Header that starts with 0x20 0x29 the 14 * When writing the first urb must have a Header that starts with 0x20 0x29 the
15 * next two bytes must say how much data will be sended. 15 * next two bytes must say how much data will be sent.
16 * When reading the process is almost equal except that the header starts with 16 * When reading the process is almost equal except that the header starts with
17 * 0x00 0x20. 17 * 0x00 0x20.
18 * 18 *
@@ -31,15 +31,15 @@
31 * 31 *
32 * The driver registers himself with the USB-serial core and the USB Core. I had 32 * The driver registers himself with the USB-serial core and the USB Core. I had
33 * to implement a probe function against USB-serial, because other way, the 33 * to implement a probe function against USB-serial, because other way, the
34 * driver was attaching himself to both interfaces. I have tryed with different 34 * driver was attaching himself to both interfaces. I have tried with different
35 * configurations of usb_serial_driver with out exit, only the probe function 35 * configurations of usb_serial_driver with out exit, only the probe function
36 * could handle this correctly. 36 * could handle this correctly.
37 * 37 *
38 * I have taken some info from a Greg Kroah-Hartman article: 38 * I have taken some info from a Greg Kroah-Hartman article:
39 * http://www.linuxjournal.com/article/6573 39 * http://www.linuxjournal.com/article/6573
40 * And from Linux Device Driver Kit CD, which is a great work, the authors taken 40 * And from Linux Device Driver Kit CD, which is a great work, the authors taken
41 * the work to recompile lots of information an knowladge in drivers development 41 * the work to recompile lots of information an knowledge in drivers development
42 * and made it all avaible inside a cd. 42 * and made it all available inside a cd.
43 * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/ 43 * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/
44 * 44 *
45 */ 45 */
diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c
index bc77e955cbef..9d909266babc 100644
--- a/drivers/usb/serial/ark3116.c
+++ b/drivers/usb/serial/ark3116.c
@@ -71,7 +71,7 @@ struct ark3116_private {
71 __u32 lcr; /* line control register value */ 71 __u32 lcr; /* line control register value */
72 __u32 hcr; /* handshake control register (0x8) 72 __u32 hcr; /* handshake control register (0x8)
73 * value */ 73 * value */
74 __u32 mcr; /* modem contol register value */ 74 __u32 mcr; /* modem control register value */
75 75
76 /* protects the status values below */ 76 /* protects the status values below */
77 spinlock_t status_lock; 77 spinlock_t status_lock;
@@ -609,7 +609,7 @@ static void ark3116_read_int_callback(struct urb *urb)
609} 609}
610 610
611 611
612/* Data comes in via the bulk (data) URB, erors/interrupts via the int URB. 612/* Data comes in via the bulk (data) URB, errors/interrupts via the int URB.
613 * This means that we cannot be sure which data byte has an associated error 613 * This means that we cannot be sure which data byte has an associated error
614 * condition, so we report an error for all data in the next bulk read. 614 * condition, so we report an error for all data in the next bulk read.
615 * 615 *
diff --git a/drivers/usb/serial/belkin_sa.c b/drivers/usb/serial/belkin_sa.c
index 84217e78ded4..336a10566f90 100644
--- a/drivers/usb/serial/belkin_sa.c
+++ b/drivers/usb/serial/belkin_sa.c
@@ -18,7 +18,7 @@
18 * driver 18 * driver
19 * 19 *
20 * TODO: 20 * TODO:
21 * -- Add true modem contol line query capability. Currently we track the 21 * -- Add true modem control line query capability. Currently we track the
22 * states reported by the interrupt and the states we request. 22 * states reported by the interrupt and the states we request.
23 * -- Add support for flush commands 23 * -- Add support for flush commands
24 */ 24 */
diff --git a/drivers/usb/serial/cyberjack.c b/drivers/usb/serial/cyberjack.c
index 6e1b69d0f5f5..1a71363b95bd 100644
--- a/drivers/usb/serial/cyberjack.c
+++ b/drivers/usb/serial/cyberjack.c
@@ -285,7 +285,7 @@ static void cyberjack_read_int_callback(struct urb *urb)
285 goto resubmit; 285 goto resubmit;
286 } 286 }
287 287
288 /* "+=" is probably more fault tollerant than "=" */ 288 /* "+=" is probably more fault tolerant than "=" */
289 priv->rdtodo += size; 289 priv->rdtodo += size;
290 290
291 dev_dbg(dev, "%s - rdtodo: %d\n", __func__, priv->rdtodo); 291 dev_dbg(dev, "%s - rdtodo: %d\n", __func__, priv->rdtodo);
diff --git a/drivers/usb/serial/garmin_gps.c b/drivers/usb/serial/garmin_gps.c
index f4ee74da44e8..fac8f09640a4 100644
--- a/drivers/usb/serial/garmin_gps.c
+++ b/drivers/usb/serial/garmin_gps.c
@@ -275,7 +275,7 @@ static int pkt_add(struct garmin_data *garmin_data_p,
275 unsigned long flags; 275 unsigned long flags;
276 struct garmin_packet *pkt; 276 struct garmin_packet *pkt;
277 277
278 /* process only packets containg data ... */ 278 /* process only packets containing data ... */
279 if (data_length) { 279 if (data_length) {
280 pkt = kmalloc(sizeof(struct garmin_packet)+data_length, 280 pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
281 GFP_ATOMIC); 281 GFP_ATOMIC);
@@ -1144,7 +1144,7 @@ static void garmin_read_process(struct garmin_data *garmin_data_p,
1144 unsigned long flags; 1144 unsigned long flags;
1145 1145
1146 if (garmin_data_p->flags & FLAGS_DROP_DATA) { 1146 if (garmin_data_p->flags & FLAGS_DROP_DATA) {
1147 /* abort-transfer cmd is actice */ 1147 /* abort-transfer cmd is active */
1148 dev_dbg(&garmin_data_p->port->dev, "%s - pkt dropped\n", __func__); 1148 dev_dbg(&garmin_data_p->port->dev, "%s - pkt dropped\n", __func__);
1149 } else if (garmin_data_p->state != STATE_DISCONNECTED && 1149 } else if (garmin_data_p->state != STATE_DISCONNECTED &&
1150 garmin_data_p->state != STATE_RESET) { 1150 garmin_data_p->state != STATE_RESET) {
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c
index 57c439a24b5a..fa0c3c14f8df 100644
--- a/drivers/usb/serial/iuu_phoenix.c
+++ b/drivers/usb/serial/iuu_phoenix.c
@@ -770,7 +770,7 @@ uart_enable_failed:
770 return status; 770 return status;
771} 771}
772 772
773/* Diables the IUU UART (a.k.a. the Phoenix voiderface) */ 773/* Disables the IUU UART (a.k.a. the Phoenix voiderface) */
774static int iuu_uart_off(struct usb_serial_port *port) 774static int iuu_uart_off(struct usb_serial_port *port)
775{ 775{
776 int status; 776 int status;
diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 6125fce7d0f6..b0f6f5eda2cd 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -165,7 +165,7 @@ static void keyspan_set_termios(struct tty_struct *tty,
165 if (d_details->calculate_baud_rate(port, baud_rate, d_details->baudclk, 165 if (d_details->calculate_baud_rate(port, baud_rate, d_details->baudclk,
166 NULL, NULL, NULL, device_port) == KEYSPAN_BAUD_RATE_OK) { 166 NULL, NULL, NULL, device_port) == KEYSPAN_BAUD_RATE_OK) {
167 /* FIXME - more to do here to ensure rate changes cleanly */ 167 /* FIXME - more to do here to ensure rate changes cleanly */
168 /* FIXME - calcuate exact rate from divisor ? */ 168 /* FIXME - calculate exact rate from divisor ? */
169 p_priv->baud = baud_rate; 169 p_priv->baud = baud_rate;
170 } else 170 } else
171 baud_rate = tty_termios_baud_rate(old_termios); 171 baud_rate = tty_termios_baud_rate(old_termios);
diff --git a/drivers/usb/serial/keyspan_usa26msg.h b/drivers/usb/serial/keyspan_usa26msg.h
index 3808727db65a..09e21e84fc4e 100644
--- a/drivers/usb/serial/keyspan_usa26msg.h
+++ b/drivers/usb/serial/keyspan_usa26msg.h
@@ -62,7 +62,7 @@
62 or: 62 or:
63 63
64 (b) 0x80 bit set 64 (b) 0x80 bit set
65 indiates that the bytes following alternate data and 65 indicates that the bytes following alternate data and
66 status bytes: 66 status bytes:
67 67
68 STAT DATA STAT DATA STAT DATA STAT DATA ... 68 STAT DATA STAT DATA STAT DATA STAT DATA ...
diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c
index ee68191e87c6..5646fa587ffd 100644
--- a/drivers/usb/serial/mos7720.c
+++ b/drivers/usb/serial/mos7720.c
@@ -1,6 +1,6 @@
1/* 1/*
2 * mos7720.c 2 * mos7720.c
3 * Controls the Moschip 7720 usb to dual port serial convertor 3 * Controls the Moschip 7720 usb to dual port serial converter
4 * 4 *
5 * Copyright 2006 Moschip Semiconductor Tech. Ltd. 5 * Copyright 2006 Moschip Semiconductor Tech. Ltd.
6 * 6 *
@@ -46,7 +46,7 @@
46#define MOS_WRITE 0x0E 46#define MOS_WRITE 0x0E
47#define MOS_READ 0x0D 47#define MOS_READ 0x0D
48 48
49/* Interrupt Rotinue Defines */ 49/* Interrupt Routines Defines */
50#define SERIAL_IIR_RLS 0x06 50#define SERIAL_IIR_RLS 0x06
51#define SERIAL_IIR_RDA 0x04 51#define SERIAL_IIR_RDA 0x04
52#define SERIAL_IIR_CTI 0x0c 52#define SERIAL_IIR_CTI 0x0c
@@ -438,7 +438,7 @@ static int write_parport_reg_nonblock(struct mos7715_parport *mos_parport,
438 * not called the release function yet because someone has a serial port open. 438 * not called the release function yet because someone has a serial port open.
439 * The shared release_lock prevents the first, and the mutex and disconnected 439 * The shared release_lock prevents the first, and the mutex and disconnected
440 * flag maintained by usbserial covers the second. We also use the msg_pending 440 * flag maintained by usbserial covers the second. We also use the msg_pending
441 * flag to ensure that all synchronous usb messgage calls have completed before 441 * flag to ensure that all synchronous usb message calls have completed before
442 * our release function can return. 442 * our release function can return.
443 */ 443 */
444static int parport_prologue(struct parport *pp) 444static int parport_prologue(struct parport *pp)
@@ -469,7 +469,7 @@ static int parport_prologue(struct parport *pp)
469} 469}
470 470
471/* 471/*
472 * This is the the common bottom part of all parallel port functions that send 472 * This is the common bottom part of all parallel port functions that send
473 * synchronous messages to the device. 473 * synchronous messages to the device.
474 */ 474 */
475static inline void parport_epilogue(struct parport *pp) 475static inline void parport_epilogue(struct parport *pp)
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c
index 90c77b20c883..e403bda0af4d 100644
--- a/drivers/usb/serial/opticon.c
+++ b/drivers/usb/serial/opticon.c
@@ -139,7 +139,7 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)
139 /* Clear RTS line */ 139 /* Clear RTS line */
140 send_control_msg(port, CONTROL_RTS, 0); 140 send_control_msg(port, CONTROL_RTS, 0);
141 141
142 /* clear the halt status of the enpoint */ 142 /* clear the halt status of the endpoint */
143 usb_clear_halt(port->serial->dev, port->read_urb->pipe); 143 usb_clear_halt(port->serial->dev, port->read_urb->pipe);
144 144
145 res = usb_serial_generic_open(tty, port); 145 res = usb_serial_generic_open(tty, port);
@@ -214,7 +214,7 @@ static int opticon_write(struct tty_struct *tty, struct usb_serial_port *port,
214 214
215 usb_serial_debug_data(&port->dev, __func__, count, buffer); 215 usb_serial_debug_data(&port->dev, __func__, count, buffer);
216 216
217 /* The conncected devices do not have a bulk write endpoint, 217 /* The connected devices do not have a bulk write endpoint,
218 * to transmit data to de barcode device the control endpoint is used */ 218 * to transmit data to de barcode device the control endpoint is used */
219 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO); 219 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
220 if (!dr) { 220 if (!dr) {
diff --git a/drivers/usb/serial/visor.h b/drivers/usb/serial/visor.h
index 88db4d06aefb..4c456dd69ce5 100644
--- a/drivers/usb/serial/visor.h
+++ b/drivers/usb/serial/visor.h
@@ -136,7 +136,7 @@ struct visor_connection_info {
136 * connections.end_point_info is non-zero. If value is 0, then 136 * connections.end_point_info is non-zero. If value is 0, then
137 * connections.port contains the endpoint number, which is the same for in 137 * connections.port contains the endpoint number, which is the same for in
138 * and out. 138 * and out.
139 * @port_function_id: contains the creator id of the applicaton that opened 139 * @port_function_id: contains the creator id of the application that opened
140 * this connection. 140 * this connection.
141 * @port: contains the in/out endpoint number. Is 0 if in and out endpoint 141 * @port: contains the in/out endpoint number. Is 0 if in and out endpoint
142 * numbers are different. 142 * numbers are different.
diff --git a/drivers/usb/serial/zte_ev.c b/drivers/usb/serial/zte_ev.c
index eae2c873b39f..288d26565c59 100644
--- a/drivers/usb/serial/zte_ev.c
+++ b/drivers/usb/serial/zte_ev.c
@@ -53,7 +53,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
53 USB_CTRL_GET_TIMEOUT); 53 USB_CTRL_GET_TIMEOUT);
54 dev_dbg(dev, "result = %d\n", result); 54 dev_dbg(dev, "result = %d\n", result);
55 55
56 /* send 2st cmd and recieve data */ 56 /* send 2st cmd and receive data */
57 /* 57 /*
58 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 25.1.0(5) 58 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 25.1.0(5)
59 * 16.0 DI 00 96 00 00 00 00 08 59 * 16.0 DI 00 96 00 00 00 00 08
@@ -65,7 +65,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
65 USB_CTRL_GET_TIMEOUT); 65 USB_CTRL_GET_TIMEOUT);
66 debug_data(dev, __func__, len, buf, result); 66 debug_data(dev, __func__, len, buf, result);
67 67
68 /* send 3 cmd */ 68 /* send 3rd cmd */
69 /* 69 /*
70 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 30.1.0 70 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 30.1.0
71 * 16.0 DO 80 25 00 00 00 00 08 .%..... 30.2.0 71 * 16.0 DO 80 25 00 00 00 00 08 .%..... 30.2.0
@@ -84,7 +84,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
84 USB_CTRL_GET_TIMEOUT); 84 USB_CTRL_GET_TIMEOUT);
85 debug_data(dev, __func__, len, buf, result); 85 debug_data(dev, __func__, len, buf, result);
86 86
87 /* send 4 cmd */ 87 /* send 4th cmd */
88 /* 88 /*
89 * 16.0 CTL 21 22 03 00 00 00 00 00 89 * 16.0 CTL 21 22 03 00 00 00 00 00
90 */ 90 */
@@ -95,7 +95,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
95 USB_CTRL_GET_TIMEOUT); 95 USB_CTRL_GET_TIMEOUT);
96 dev_dbg(dev, "result = %d\n", result); 96 dev_dbg(dev, "result = %d\n", result);
97 97
98 /* send 5 cmd */ 98 /* send 5th cmd */
99 /* 99 /*
100 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 33.1.0 100 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 33.1.0
101 * 16.0 DI 80 25 00 00 00 00 08 101 * 16.0 DI 80 25 00 00 00 00 08
@@ -107,7 +107,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
107 USB_CTRL_GET_TIMEOUT); 107 USB_CTRL_GET_TIMEOUT);
108 debug_data(dev, __func__, len, buf, result); 108 debug_data(dev, __func__, len, buf, result);
109 109
110 /* send 6 cmd */ 110 /* send 6th cmd */
111 /* 111 /*
112 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 34.1.0 112 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 34.1.0
113 * 16.0 DO 80 25 00 00 00 00 08 113 * 16.0 DO 80 25 00 00 00 00 08
@@ -195,7 +195,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
195 USB_CTRL_GET_TIMEOUT); 195 USB_CTRL_GET_TIMEOUT);
196 debug_data(dev, __func__, len, buf, result); 196 debug_data(dev, __func__, len, buf, result);
197 197
198 /* send 4 cmd */ 198 /* send 4th cmd */
199 /* 199 /*
200 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 30.1.0 200 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 30.1.0
201 * 16.0 DO 00 c2 01 00 00 00 08 .%..... 30.2.0 201 * 16.0 DO 00 c2 01 00 00 00 08 .%..... 30.2.0
@@ -214,7 +214,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
214 USB_CTRL_GET_TIMEOUT); 214 USB_CTRL_GET_TIMEOUT);
215 debug_data(dev, __func__, len, buf, result); 215 debug_data(dev, __func__, len, buf, result);
216 216
217 /* send 5 cmd */ 217 /* send 5th cmd */
218 /* 218 /*
219 * 16.0 CTL 21 22 03 00 00 00 00 00 219 * 16.0 CTL 21 22 03 00 00 00 00 00
220 */ 220 */
@@ -225,7 +225,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
225 USB_CTRL_GET_TIMEOUT); 225 USB_CTRL_GET_TIMEOUT);
226 dev_dbg(dev, "result = %d\n", result); 226 dev_dbg(dev, "result = %d\n", result);
227 227
228 /* send 6 cmd */ 228 /* send 6th cmd */
229 /* 229 /*
230 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 33.1.0 230 * 16.0 CTL a1 21 00 00 00 00 07 00 CLASS 33.1.0
231 * 16.0 DI 00 c2 01 00 00 00 08 231 * 16.0 DI 00 c2 01 00 00 00 08
@@ -237,7 +237,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
237 USB_CTRL_GET_TIMEOUT); 237 USB_CTRL_GET_TIMEOUT);
238 debug_data(dev, __func__, len, buf, result); 238 debug_data(dev, __func__, len, buf, result);
239 239
240 /* send 7 cmd */ 240 /* send 7th cmd */
241 /* 241 /*
242 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 354.1.0 242 * 16.0 CTL 21 20 00 00 00 00 07 00 CLASS 354.1.0
243 * 16.0 DO 00 c2 01 00 00 00 08 ....... 354.2.0 243 * 16.0 DO 00 c2 01 00 00 00 08 ....... 354.2.0
@@ -256,7 +256,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
256 USB_CTRL_GET_TIMEOUT); 256 USB_CTRL_GET_TIMEOUT);
257 debug_data(dev, __func__, len, buf, result); 257 debug_data(dev, __func__, len, buf, result);
258 258
259 /* send 8 cmd */ 259 /* send 8th cmd */
260 /* 260 /*
261 * 16.0 CTL 21 22 03 00 00 00 00 00 261 * 16.0 CTL 21 22 03 00 00 00 00 00
262 */ 262 */