]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: serial: correct spelling mistakes in comments
authorRahul Bedarkar <rahulbedarkar89@gmail.com>
Thu, 2 Jan 2014 13:59:24 +0000 (19:29 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2014 20:39:31 +0000 (12:39 -0800)
Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
12 files changed:
drivers/usb/serial/aircable.c
drivers/usb/serial/ark3116.c
drivers/usb/serial/belkin_sa.c
drivers/usb/serial/cyberjack.c
drivers/usb/serial/garmin_gps.c
drivers/usb/serial/iuu_phoenix.c
drivers/usb/serial/keyspan.c
drivers/usb/serial/keyspan_usa26msg.h
drivers/usb/serial/mos7720.c
drivers/usb/serial/opticon.c
drivers/usb/serial/visor.h
drivers/usb/serial/zte_ev.c

index 6e320cec397dc77fc9ec3d8aadb39bb4fcc5a70f..80a9845cd93fba16e50ae7797606b7b9b925c887 100644 (file)
@@ -10,9 +10,9 @@
  *
  * The device works as an standard CDC device, it has 2 interfaces, the first
  * one is for firmware access and the second is the serial one.
- * The protocol is very simply, there are two posibilities reading or writing.
+ * The protocol is very simply, there are two possibilities reading or writing.
  * When writing the first urb must have a Header that starts with 0x20 0x29 the
- * next two bytes must say how much data will be sended.
+ * next two bytes must say how much data will be sent.
  * When reading the process is almost equal except that the header starts with
  * 0x00 0x20.
  *
  *
  * The driver registers himself with the USB-serial core and the USB Core. I had
  * to implement a probe function against USB-serial, because other way, the
- * driver was attaching himself to both interfaces. I have tryed with different
+ * driver was attaching himself to both interfaces. I have tried with different
  * configurations of usb_serial_driver with out exit, only the probe function
  * could handle this correctly.
  *
  * I have taken some info from a Greg Kroah-Hartman article:
  * http://www.linuxjournal.com/article/6573
  * And from Linux Device Driver Kit CD, which is a great work, the authors taken
- * the work to recompile lots of information an knowladge in drivers development
- * and made it all avaible inside a cd.
+ * the work to recompile lots of information an knowledge in drivers development
+ * and made it all available inside a cd.
  * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/
  *
  */
index bc77e955cbefda0c19f6847553b3897b0d4c6274..9d909266babc85b370746e775a63b58884befc8f 100644 (file)
@@ -71,7 +71,7 @@ struct ark3116_private {
        __u32                   lcr;    /* line control register value */
        __u32                   hcr;    /* handshake control register (0x8)
                                         * value */
-       __u32                   mcr;    /* modem contol register value */
+       __u32                   mcr;    /* modem control register value */
 
        /* protects the status values below */
        spinlock_t              status_lock;
@@ -609,7 +609,7 @@ static void ark3116_read_int_callback(struct urb *urb)
 }
 
 
-/* Data comes in via the bulk (data) URB, erors/interrupts via the int URB.
+/* Data comes in via the bulk (data) URB, errors/interrupts via the int URB.
  * This means that we cannot be sure which data byte has an associated error
  * condition, so we report an error for all data in the next bulk read.
  *
index 84217e78ded4005e8bcdc273a72c665c8eab09e1..336a10566f90cd903f1f652c802ceed826a71ca0 100644 (file)
@@ -18,7 +18,7 @@
  * driver
  *
  * TODO:
- * -- Add true modem contol line query capability.  Currently we track the
+ * -- Add true modem control line query capability.  Currently we track the
  *    states reported by the interrupt and the states we request.
  * -- Add support for flush commands
  */
index 6e1b69d0f5f57da980f439a3643567ada4aec3b6..1a71363b95bd648f71ec9115bbb5ca3648a4050c 100644 (file)
@@ -285,7 +285,7 @@ static void cyberjack_read_int_callback(struct urb *urb)
                        goto resubmit;
                }
 
-               /* "+=" is probably more fault tollerant than "=" */
+               /* "+=" is probably more fault tolerant than "=" */
                priv->rdtodo += size;
 
                dev_dbg(dev, "%s - rdtodo: %d\n", __func__, priv->rdtodo);
index f4ee74da44e847d71afb12f451e2c94cacbf3a85..fac8f09640a4f86f0e50f835a4c16fba0a81024d 100644 (file)
@@ -275,7 +275,7 @@ static int pkt_add(struct garmin_data *garmin_data_p,
        unsigned long flags;
        struct garmin_packet *pkt;
 
-       /* process only packets containg data ... */
+       /* process only packets containing data ... */
        if (data_length) {
                pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
                                                                GFP_ATOMIC);
@@ -1144,7 +1144,7 @@ static void garmin_read_process(struct garmin_data *garmin_data_p,
        unsigned long flags;
 
        if (garmin_data_p->flags & FLAGS_DROP_DATA) {
-               /* abort-transfer cmd is actice */
+               /* abort-transfer cmd is active */
                dev_dbg(&garmin_data_p->port->dev, "%s - pkt dropped\n", __func__);
        } else if (garmin_data_p->state != STATE_DISCONNECTED &&
                garmin_data_p->state != STATE_RESET) {
index 57c439a24b5adda966a7fee7218487f227386b1d..fa0c3c14f8df8906cdf886241d794e8936c6deba 100644 (file)
@@ -770,7 +770,7 @@ uart_enable_failed:
        return status;
 }
 
-/*  Diables the IUU UART (a.k.a. the Phoenix voiderface) */
+/*  Disables the IUU UART (a.k.a. the Phoenix voiderface) */
 static int iuu_uart_off(struct usb_serial_port *port)
 {
        int status;
index 6125fce7d0f6f1c43485a790e55e382e13ad857d..b0f6f5eda2cde8fb2af9fce376c655ab3831ec4e 100644 (file)
@@ -165,7 +165,7 @@ static void keyspan_set_termios(struct tty_struct *tty,
        if (d_details->calculate_baud_rate(port, baud_rate, d_details->baudclk,
                                NULL, NULL, NULL, device_port) == KEYSPAN_BAUD_RATE_OK) {
                /* FIXME - more to do here to ensure rate changes cleanly */
-               /* FIXME - calcuate exact rate from divisor ? */
+               /* FIXME - calculate exact rate from divisor ? */
                p_priv->baud = baud_rate;
        } else
                baud_rate = tty_termios_baud_rate(old_termios);
index 3808727db65ad666e8b30fe5c7985034a504d807..09e21e84fc4e03ed7db638c402bbfd66e02918ef 100644 (file)
@@ -62,7 +62,7 @@
        or:
 
                (b)     0x80 bit set
-                       indiates that the bytes following alternate data and
+                       indicates that the bytes following alternate data and
                        status bytes:
 
                                STAT DATA STAT DATA STAT DATA STAT DATA ...
index ee68191e87c62ee0d4ba667ae15937b77f607e28..5646fa587ffd480d136d909c88b17289de8c4468 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * mos7720.c
- *   Controls the Moschip 7720 usb to dual port serial convertor
+ *   Controls the Moschip 7720 usb to dual port serial converter
  *
  * Copyright 2006 Moschip Semiconductor Tech. Ltd.
  *
@@ -46,7 +46,7 @@
 #define MOS_WRITE      0x0E
 #define MOS_READ       0x0D
 
-/* Interrupt Rotinue Defines   */
+/* Interrupt Routines Defines  */
 #define SERIAL_IIR_RLS 0x06
 #define SERIAL_IIR_RDA 0x04
 #define SERIAL_IIR_CTI 0x0c
@@ -438,7 +438,7 @@ static int write_parport_reg_nonblock(struct mos7715_parport *mos_parport,
  * not called the release function yet because someone has a serial port open.
  * The shared release_lock prevents the first, and the mutex and disconnected
  * flag maintained by usbserial covers the second.  We also use the msg_pending
- * flag to ensure that all synchronous usb messgage calls have completed before
+ * flag to ensure that all synchronous usb message calls have completed before
  * our release function can return.
  */
 static int parport_prologue(struct parport *pp)
@@ -469,7 +469,7 @@ static int parport_prologue(struct parport *pp)
 }
 
 /*
- * This is the the common bottom part of all parallel port functions that send
+ * This is the common bottom part of all parallel port functions that send
  * synchronous messages to the device.
  */
 static inline void parport_epilogue(struct parport *pp)
index 90c77b20c883763b6be0ae1648993f3244044947..e403bda0af4daa61de800d68af3749f70b764b19 100644 (file)
@@ -139,7 +139,7 @@ static int opticon_open(struct tty_struct *tty, struct usb_serial_port *port)
        /* Clear RTS line */
        send_control_msg(port, CONTROL_RTS, 0);
 
-       /* clear the halt status of the enpoint */
+       /* clear the halt status of the endpoint */
        usb_clear_halt(port->serial->dev, port->read_urb->pipe);
 
        res = usb_serial_generic_open(tty, port);
@@ -214,7 +214,7 @@ static int opticon_write(struct tty_struct *tty, struct usb_serial_port *port,
 
        usb_serial_debug_data(&port->dev, __func__, count, buffer);
 
-       /* The conncected devices do not have a bulk write endpoint,
+       /* The connected devices do not have a bulk write endpoint,
         * to transmit data to de barcode device the control endpoint is used */
        dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO);
        if (!dr) {
index 88db4d06aefb0f94132e182b215c2b0657ec6572..4c456dd69ce54c5df0ba791770a239984aa4a52d 100644 (file)
@@ -136,7 +136,7 @@ struct visor_connection_info {
  *     connections.end_point_info is non-zero.  If value is 0, then
  *     connections.port contains the endpoint number, which is the same for in
  *     and out.
- * @port_function_id: contains the creator id of the applicaton that opened
+ * @port_function_id: contains the creator id of the application that opened
  *     this connection.
  * @port: contains the in/out endpoint number.  Is 0 if in and out endpoint
  *     numbers are different.
index eae2c873b39ff7dbb2ecd8d7624a1e2aec14e8ca..288d26565c596fbe67a5d5539df7b280b0f15086 100644 (file)
@@ -53,7 +53,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
                                 USB_CTRL_GET_TIMEOUT);
        dev_dbg(dev, "result = %d\n", result);
 
-       /* send  2st cmd and recieve data */
+       /* send 2st cmd and receive data */
        /*
         * 16.0  CTL    a1 21 00 00  00 00 07 00   CLASS              25.1.0(5)
         * 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,
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 3 cmd */
+       /* send 3rd cmd */
        /*
         * 16.0 CTL    21 20 00 00  00 00 07 00    CLASS                30.1.0
         * 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,
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 4 cmd */
+       /* send 4th cmd */
        /*
         * 16.0 CTL    21 22 03 00  00 00 00 00
         */
@@ -95,7 +95,7 @@ static int zte_ev_usb_serial_open(struct tty_struct *tty,
                                 USB_CTRL_GET_TIMEOUT);
        dev_dbg(dev, "result = %d\n", result);
 
-       /* send 5 cmd */
+       /* send 5th cmd */
        /*
         * 16.0  CTL    a1 21 00 00  00 00 07 00   CLASS               33.1.0
         * 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,
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 6 cmd */
+       /* send 6th cmd */
        /*
         * 16.0  CTL    21 20 00 00  00 00 07 00    CLASS               34.1.0
         * 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)
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 4 cmd */
+       /* send 4th cmd */
        /*
         * 16.0 CTL    21 20 00 00  00 00 07 00      CLASS            30.1.0
         * 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)
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 5 cmd */
+       /* send 5th cmd */
        /*
         * 16.0 CTL    21 22 03 00  00 00 00 00
         */
@@ -225,7 +225,7 @@ static void zte_ev_usb_serial_close(struct usb_serial_port *port)
                                 USB_CTRL_GET_TIMEOUT);
        dev_dbg(dev, "result = %d\n", result);
 
-       /* send 6 cmd */
+       /* send 6th cmd */
        /*
         * 16.0  CTL    a1 21 00 00  00 00 07 00        CLASS          33.1.0
         * 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)
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 7 cmd */
+       /* send 7th cmd */
        /*
         * 16.0  CTL    21 20 00 00  00 00 07 00  CLASS               354.1.0
         * 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)
                                 USB_CTRL_GET_TIMEOUT);
        debug_data(dev, __func__, len, buf, result);
 
-       /* send 8 cmd */
+       /* send 8th cmd */
        /*
         * 16.0 CTL    21 22 03 00  00 00 00 00
         */