Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd8c5053 authored by Rahul Bedarkar's avatar Rahul Bedarkar Committed by Greg Kroah-Hartman
Browse files

USB: serial: correct spelling mistakes in comments

parent 5ae477b0
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -10,9 +10,9 @@
 *
 *
 * The device works as an standard CDC device, it has 2 interfaces, the first
 * 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.
 * 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
 * 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
 * When reading the process is almost equal except that the header starts with
 * 0x00 0x20.
 * 0x00 0x20.
 *
 *
@@ -31,15 +31,15 @@
 *
 *
 * The driver registers himself with the USB-serial core and the USB Core. I had
 * 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
 * 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
 * configurations of usb_serial_driver with out exit, only the probe function
 * could handle this correctly.
 * could handle this correctly.
 *
 *
 * I have taken some info from a Greg Kroah-Hartman article:
 * I have taken some info from a Greg Kroah-Hartman article:
 * http://www.linuxjournal.com/article/6573
 * http://www.linuxjournal.com/article/6573
 * And from Linux Device Driver Kit CD, which is a great work, the authors taken
 * 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
 * the work to recompile lots of information an knowledge in drivers development
 * and made it all avaible inside a cd.
 * and made it all available inside a cd.
 * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/
 * URL: http://kernel.org/pub/linux/kernel/people/gregkh/ddk/
 *
 *
 */
 */
+2 −2
Original line number Original line Diff line number Diff line
@@ -71,7 +71,7 @@ struct ark3116_private {
	__u32			lcr;	/* line control register value */
	__u32			lcr;	/* line control register value */
	__u32			hcr;	/* handshake control register (0x8)
	__u32			hcr;	/* handshake control register (0x8)
					 * value */
					 * value */
	__u32			mcr;	/* modem contol register value */
	__u32			mcr;	/* modem control register value */


	/* protects the status values below */
	/* protects the status values below */
	spinlock_t		status_lock;
	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
 * 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.
 * condition, so we report an error for all data in the next bulk read.
 *
 *
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
 * driver
 * driver
 *
 *
 * TODO:
 * 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.
 *    states reported by the interrupt and the states we request.
 * -- Add support for flush commands
 * -- Add support for flush commands
 */
 */
+1 −1
Original line number Original line Diff line number Diff line
@@ -285,7 +285,7 @@ static void cyberjack_read_int_callback(struct urb *urb)
			goto resubmit;
			goto resubmit;
		}
		}


		/* "+=" is probably more fault tollerant than "=" */
		/* "+=" is probably more fault tolerant than "=" */
		priv->rdtodo += size;
		priv->rdtodo += size;


		dev_dbg(dev, "%s - rdtodo: %d\n", __func__, priv->rdtodo);
		dev_dbg(dev, "%s - rdtodo: %d\n", __func__, priv->rdtodo);
+2 −2
Original line number Original line Diff line number Diff line
@@ -275,7 +275,7 @@ static int pkt_add(struct garmin_data *garmin_data_p,
	unsigned long flags;
	unsigned long flags;
	struct garmin_packet *pkt;
	struct garmin_packet *pkt;


	/* process only packets containg data ... */
	/* process only packets containing data ... */
	if (data_length) {
	if (data_length) {
		pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
		pkt = kmalloc(sizeof(struct garmin_packet)+data_length,
								GFP_ATOMIC);
								GFP_ATOMIC);
@@ -1144,7 +1144,7 @@ static void garmin_read_process(struct garmin_data *garmin_data_p,
	unsigned long flags;
	unsigned long flags;


	if (garmin_data_p->flags & FLAGS_DROP_DATA) {
	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__);
		dev_dbg(&garmin_data_p->port->dev, "%s - pkt dropped\n", __func__);
	} else if (garmin_data_p->state != STATE_DISCONNECTED &&
	} else if (garmin_data_p->state != STATE_DISCONNECTED &&
		garmin_data_p->state != STATE_RESET) {
		garmin_data_p->state != STATE_RESET) {
Loading