linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script.
@ 2012-05-10  9:17 Ben Minerds
  2012-05-10  9:17 ` [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (22 more replies)
  0 siblings, 23 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel

Hi all,
   Patch series for drivers/usb/serial/keyspan.c to remove warnings and errors running checkpatch.sh
   Order should not be critical. 


^ permalink raw reply	[flat|nested] 27+ messages in thread

* [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10 10:42   ` Sergei Shtylyov
  2012-05-10  9:17 ` [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
                   ` (21 subsequent siblings)
  22 siblings, 1 reply; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index a39ddd1..e68a383 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -135,7 +135,7 @@ module_usb_serial_driver(keyspan_driver, serial_drivers);
 static void keyspan_break_ctl(struct tty_struct *tty, int break_state)
 {
 	struct usb_serial_port *port = tty->driver_data;
-	struct keyspan_port_private 	*p_priv;
+	struct keyspan_port_private	*p_priv;
 
 	dbg("%s", __func__);
 
@@ -154,9 +154,9 @@ static void keyspan_set_termios(struct tty_struct *tty,
 		struct usb_serial_port *port, struct ktermios *old_termios)
 {
 	int				baud_rate, device_port;
-	struct keyspan_port_private 	*p_priv;
+	struct keyspan_port_private	*p_priv;
 	const struct keyspan_device_details	*d_details;
-	unsigned int 			cflag;
+	unsigned int			cflag;
 
 	dbg("%s", __func__);
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
  2012-05-10  9:17 ` [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10 10:46   ` Sergei Shtylyov
  2012-05-10  9:17 ` [PATCH 03/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (20 subsequent siblings)
  22 siblings, 1 reply; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 2 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index e68a383..7cbc485 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -180,7 +180,7 @@ static void keyspan_set_termios(struct tty_struct *tty,
 	tty_encode_baud_rate(tty, baud_rate, baud_rate);
 	/* set CTS/RTS handshake etc. */
 	p_priv->cflag = cflag;
-	p_priv->flow_control = (cflag & CRTSCTS)? flow_cts: flow_none;
+	p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none;
 
 	/* Mark/Space not supported */
 	tty->termios->c_cflag &= ~CMSPAR;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 03/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
  2012-05-10  9:17 ` [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
  2012-05-10  9:17 ` [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 04/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '=' Ben Minerds
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 6 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 7cbc485..9dfd154 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -227,12 +227,12 @@ static int keyspan_tiocmset(struct tty_struct *tty,
 static int keyspan_write(struct tty_struct *tty,
 	struct usb_serial_port *port, const unsigned char *buf, int count)
 {
-	struct keyspan_port_private 	*p_priv;
+	struct keyspan_port_private	*p_priv;
 	const struct keyspan_device_details	*d_details;
 	int				flip;
-	int 				left, todo;
+	int				left, todo;
 	struct urb			*this_urb;
-	int 				err, maxDataLen, dataOffset;
+	int				err, maxDataLen, dataOffset;
 
 	p_priv = usb_get_serial_port_data(port);
 	d_details = p_priv->device_details;
@@ -303,7 +303,7 @@ static void	usa26_indat_callback(struct urb *urb)
 	int			endpoint;
 	struct usb_serial_port	*port;
 	struct tty_struct	*tty;
-	unsigned char 		*data = urb->transfer_buffer;
+	unsigned char		*data = urb->transfer_buffer;
 	int status = urb->status;
 
 	dbg("%s", __func__);
@@ -390,11 +390,11 @@ static void	usa26_outcont_callback(struct urb *urb)
 
 static void	usa26_instat_callback(struct urb *urb)
 {
-	unsigned char 				*data = urb->transfer_buffer;
+	unsigned char				*data = urb->transfer_buffer;
 	struct keyspan_usa26_portStatusMessage	*msg;
 	struct usb_serial			*serial;
 	struct usb_serial_port			*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	struct tty_struct			*tty;
 	int old_dcd_state, err;
 	int status = urb->status;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 04/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '='
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (2 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 03/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 05/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (18 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 1 checkpatch.sh error.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 9dfd154..0243477 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -485,7 +485,7 @@ static void usa28_indat_callback(struct urb *urb)
 		p_priv = usb_get_serial_port_data(port);
 		data = urb->transfer_buffer;
 
-		tty =tty_port_tty_get(&port->port);
+		tty = tty_port_tty_get(&port->port);
 		if (tty && urb->actual_length) {
 			tty_insert_flip_string(tty, data, urb->actual_length);
 			tty_flip_buffer_push(tty);
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 05/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (3 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 04/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '=' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 06/21] USB: serial: Changes to conform with checkpatch.sh script. white space around '(' Ben Minerds
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 2 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 0243477..a6fc2be 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -526,11 +526,11 @@ static void	usa28_outcont_callback(struct urb *urb)
 static void	usa28_instat_callback(struct urb *urb)
 {
 	int					err;
-	unsigned char 				*data = urb->transfer_buffer;
+	unsigned char				*data = urb->transfer_buffer;
 	struct keyspan_usa28_portStatusMessage	*msg;
 	struct usb_serial			*serial;
 	struct usb_serial_port			*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	struct tty_struct			*tty;
 	int old_dcd_state;
 	int status = urb->status;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 06/21] USB: serial: Changes to conform with checkpatch.sh script. white space around '('
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (4 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 05/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 07/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (16 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 2 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index a6fc2be..40806d0 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -569,7 +569,7 @@ static void	usa28_instat_callback(struct urb *urb)
 	p_priv->dcd_state = ((msg->dcd) ? 1 : 0);
 	p_priv->ri_state = ((msg->ri) ? 1 : 0);
 
-	if( old_dcd_state != p_priv->dcd_state && old_dcd_state) {
+	if (old_dcd_state != p_priv->dcd_state && old_dcd_state) {
 		tty = tty_port_tty_get(&port->port);
 		if (tty && !C_CLOCAL(tty)) 
 			tty_hangup(tty);
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 07/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (5 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 06/21] USB: serial: Changes to conform with checkpatch.sh script. white space around '(' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 08/21] " Ben Minerds
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 6 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 40806d0..6d89779 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -617,11 +617,11 @@ static void	usa49_glocont_callback(struct urb *urb)
 static void	usa49_instat_callback(struct urb *urb)
 {
 	int					err;
-	unsigned char 				*data = urb->transfer_buffer;
+	unsigned char				*data = urb->transfer_buffer;
 	struct keyspan_usa49_portStatusMessage	*msg;
 	struct usb_serial			*serial;
 	struct usb_serial_port			*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	int old_dcd_state;
 	int status = urb->status;
 
@@ -688,7 +688,7 @@ static void	usa49_indat_callback(struct urb *urb)
 	int			endpoint;
 	struct usb_serial_port	*port;
 	struct tty_struct	*tty;
-	unsigned char 		*data = urb->transfer_buffer;
+	unsigned char		*data = urb->transfer_buffer;
 	int status = urb->status;
 
 	dbg("%s", __func__);
@@ -739,7 +739,7 @@ static void usa49wg_indat_callback(struct urb *urb)
 	struct usb_serial	*serial;
 	struct usb_serial_port	*port;
 	struct tty_struct	*tty;
-	unsigned char 		*data = urb->transfer_buffer;
+	unsigned char		*data = urb->transfer_buffer;
 	int status = urb->status;
 
 	dbg("%s", __func__);
@@ -814,9 +814,9 @@ static void usa90_indat_callback(struct urb *urb)
 	int			i, err;
 	int			endpoint;
 	struct usb_serial_port	*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	struct tty_struct	*tty;
-	unsigned char 		*data = urb->transfer_buffer;
+	unsigned char		*data = urb->transfer_buffer;
 	int status = urb->status;
 
 	dbg("%s", __func__);
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 08/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (6 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 07/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 09/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 7 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 6d89779..6e9d8a6 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -881,11 +881,11 @@ static void usa90_indat_callback(struct urb *urb)
 
 static void	usa90_instat_callback(struct urb *urb)
 {
-	unsigned char 				*data = urb->transfer_buffer;
+	unsigned char				*data = urb->transfer_buffer;
 	struct keyspan_usa90_portStatusMessage	*msg;
 	struct usb_serial			*serial;
 	struct usb_serial_port			*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	struct tty_struct			*tty;
 	int old_dcd_state, err;
 	int status = urb->status;
@@ -949,11 +949,11 @@ static void	usa90_outcont_callback(struct urb *urb)
 static void	usa67_instat_callback(struct urb *urb)
 {
 	int					err;
-	unsigned char 				*data = urb->transfer_buffer;
+	unsigned char				*data = urb->transfer_buffer;
 	struct keyspan_usa67_portStatusMessage	*msg;
 	struct usb_serial			*serial;
 	struct usb_serial_port			*port;
-	struct keyspan_port_private	 	*p_priv;
+	struct keyspan_port_private		*p_priv;
 	int old_dcd_state;
 	int status = urb->status;
 
@@ -1065,9 +1065,9 @@ static int keyspan_write_room(struct tty_struct *tty)
 
 static int keyspan_open(struct tty_struct *tty, struct usb_serial_port *port)
 {
-	struct keyspan_port_private 	*p_priv;
-	struct keyspan_serial_private 	*s_priv;
-	struct usb_serial 		*serial = port->serial;
+	struct keyspan_port_private	*p_priv;
+	struct keyspan_serial_private	*s_priv;
+	struct usb_serial		*serial = port->serial;
 	const struct keyspan_device_details	*d_details;
 	int				i, err;
 	int				baud_rate, device_port;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 09/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (7 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 08/21] " Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 10/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 2 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 6e9d8a6..0c952eb 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1134,7 +1134,7 @@ static int keyspan_open(struct tty_struct *tty, struct usb_serial_port *port)
 	}
 	/* set CTS/RTS handshake etc. */
 	p_priv->cflag = cflag;
-	p_priv->flow_control = (cflag & CRTSCTS)? flow_cts: flow_none;
+	p_priv->flow_control = (cflag & CRTSCTS) ? flow_cts : flow_none;
 
 	keyspan_send_setup(port, 1);
 	/* mdelay(100); */
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 10/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (8 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 09/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 11/21] USB: serial: Changes to conform with checkpatch.sh script. parentheses not required Ben Minerds
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 4 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 0c952eb..f590bfa 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1162,8 +1162,8 @@ static void keyspan_close(struct usb_serial_port *port)
 {
 	int			i;
 	struct usb_serial	*serial = port->serial;
-	struct keyspan_serial_private 	*s_priv;
-	struct keyspan_port_private 	*p_priv;
+	struct keyspan_serial_private	*s_priv;
+	struct keyspan_port_private	*p_priv;
 
 	dbg("%s", __func__);
 	s_priv = usb_get_serial_data(serial);
@@ -1200,8 +1200,8 @@ static void keyspan_close(struct usb_serial_port *port)
 /* download the firmware to a pre-renumeration device */
 static int keyspan_fake_startup(struct usb_serial *serial)
 {
-	int 				response;
-	const struct ihex_binrec 	*record;
+	int				response;
+	const struct ihex_binrec	*record;
 	char				*fw_name;
 	const struct firmware		*fw;
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 11/21] USB: serial: Changes to conform with checkpatch.sh script. parentheses not required
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (9 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 10/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 12/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (11 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 1 checkpatch.sh error.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index f590bfa..8259bfe 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1273,7 +1273,7 @@ static int keyspan_fake_startup(struct usb_serial *serial)
 
 	if (request_ihex_firmware(&fw, fw_name, &serial->dev->dev)) {
 		dev_err(&serial->dev->dev, "Required keyspan firmware image (%s) unavailable.\n", fw_name);
-		return(1);
+		return 1;
 	}
 
 	dbg("Uploading Keyspan %s firmware.", fw_name);
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 12/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (10 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 11/21] USB: serial: Changes to conform with checkpatch.sh script. parentheses not required Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 13/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 9 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 8259bfe..9b18357 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1431,7 +1431,7 @@ static struct callbacks {
 static void keyspan_setup_urbs(struct usb_serial *serial)
 {
 	int				i, j;
-	struct keyspan_serial_private 	*s_priv;
+	struct keyspan_serial_private	*s_priv;
 	const struct keyspan_device_details	*d_details;
 	struct usb_serial_port		*port;
 	struct keyspan_port_private	*p_priv;
@@ -1507,7 +1507,7 @@ static void keyspan_setup_urbs(struct usb_serial *serial)
 static int keyspan_usa19_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 				   u8 *rate_low, u8 *prescaler, int portnum)
 {
-	u32 	b16,	/* baud rate times 16 (actual rate used internally) */
+	u32	b16,	/* baud rate times 16 (actual rate used internally) */
 		div,	/* divisor */
 		cnt;	/* inverse of divisor (programmed into 8051) */
 
@@ -1547,7 +1547,7 @@ static int keyspan_usa19_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 static int keyspan_usa19hs_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 				   u8 *rate_low, u8 *prescaler, int portnum)
 {
-	u32 	b16,	/* baud rate times 16 (actual rate used internally) */
+	u32	b16,	/* baud rate times 16 (actual rate used internally) */
 			div;	/* divisor */
 
 	dbg("%s - %d.", __func__, baud_rate);
@@ -1582,7 +1582,7 @@ static int keyspan_usa19hs_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 static int keyspan_usa19w_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 				    u8 *rate_low, u8 *prescaler, int portnum)
 {
-	u32 	b16,	/* baud rate times 16 (actual rate used internally) */
+	u32	b16,	/* baud rate times 16 (actual rate used internally) */
 		clk,	/* clock with 13/8 prescaler */
 		div,	/* divisor using 13/8 prescaler */
 		res,	/* resulting baud rate using 13/8 prescaler */
@@ -1645,7 +1645,7 @@ static int keyspan_usa19w_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 static int keyspan_usa28_calc_baud(u32 baud_rate, u32 baudclk, u8 *rate_hi,
 				    u8 *rate_low, u8 *prescaler, int portnum)
 {
-	u32 	b16,	/* baud rate times 16 (actual rate used internally) */
+	u32	b16,	/* baud rate times 16 (actual rate used internally) */
 		div,	/* divisor */
 		cnt;	/* inverse of divisor (programmed into 8051) */
 
@@ -1691,12 +1691,12 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial,
 				    int reset_port)
 {
 	struct keyspan_usa26_portControlMessage	msg;
-	struct keyspan_serial_private 		*s_priv;
-	struct keyspan_port_private 		*p_priv;
+	struct keyspan_serial_private		*s_priv;
+	struct keyspan_port_private		*p_priv;
 	const struct keyspan_device_details	*d_details;
-	int 					outcont_urb;
+	int					outcont_urb;
 	struct urb				*this_urb;
-	int 					device_port, err;
+	int					device_port, err;
 
 	dbg("%s reset=%d", __func__, reset_port);
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 13/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (11 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 12/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 14/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 9b18357..6bb61b6 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1744,7 +1744,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial,
 		msg.setPrescaler = 0xff;
 	}
 
-	msg.lcr = (p_priv->cflag & CSTOPB)? STOPBITS_678_2: STOPBITS_5678_1;
+	msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1;
 	switch (p_priv->cflag & CSIZE) {
 	case CS5:
 		msg.lcr |= USA_DATABITS_5;
@@ -1761,7 +1761,7 @@ static int keyspan_usa26_send_setup(struct usb_serial *serial,
 	}
 	if (p_priv->cflag & PARENB) {
 		/* note USA_PARITY_NONE == 0 */
-		msg.lcr |= (p_priv->cflag & PARODD)?
+		msg.lcr |= (p_priv->cflag & PARODD) ?
 			USA_PARITY_ODD : USA_PARITY_EVEN;
 	}
 	msg.setLcr = 0xff;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 14/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (12 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 13/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 15/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 7 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 6bb61b6..61ed0e2 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -1847,11 +1847,11 @@ static int keyspan_usa28_send_setup(struct usb_serial *serial,
 				    int reset_port)
 {
 	struct keyspan_usa28_portControlMessage	msg;
-	struct keyspan_serial_private	 	*s_priv;
-	struct keyspan_port_private 		*p_priv;
+	struct keyspan_serial_private		*s_priv;
+	struct keyspan_port_private		*p_priv;
 	const struct keyspan_device_details	*d_details;
 	struct urb				*this_urb;
-	int 					device_port, err;
+	int					device_port, err;
 
 	dbg("%s", __func__);
 
@@ -1973,12 +1973,12 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
 				    int reset_port)
 {
 	struct keyspan_usa49_portControlMessage	msg;
-	struct usb_ctrlrequest 			*dr = NULL;
-	struct keyspan_serial_private 		*s_priv;
-	struct keyspan_port_private 		*p_priv;
+	struct usb_ctrlrequest			*dr = NULL;
+	struct keyspan_serial_private		*s_priv;
+	struct keyspan_port_private		*p_priv;
 	const struct keyspan_device_details	*d_details;
 	struct urb				*this_urb;
-	int 					err, device_port;
+	int					err, device_port;
 
 	dbg("%s", __func__);
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 15/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (13 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 14/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 16/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 61ed0e2..0a49c52 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2033,7 +2033,7 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
 		/* msg.setPrescaler = 0xff; */
 	}
 
-	msg.lcr = (p_priv->cflag & CSTOPB)? STOPBITS_678_2: STOPBITS_5678_1;
+	msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1;
 	switch (p_priv->cflag & CSIZE) {
 	case CS5:
 		msg.lcr |= USA_DATABITS_5;
@@ -2050,7 +2050,7 @@ static int keyspan_usa49_send_setup(struct usb_serial *serial,
 	}
 	if (p_priv->cflag & PARENB) {
 		/* note USA_PARITY_NONE == 0 */
-		msg.lcr |= (p_priv->cflag & PARODD)?
+		msg.lcr |= (p_priv->cflag & PARODD) ?
 			USA_PARITY_ODD : USA_PARITY_EVEN;
 	}
 	msg.setLcr = 0xff;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 16/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (14 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 15/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 17/21] " Ben Minerds
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 0a49c52..f059f13 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2161,11 +2161,11 @@ static int keyspan_usa90_send_setup(struct usb_serial *serial,
 				    int reset_port)
 {
 	struct keyspan_usa90_portControlMessage	msg;
-	struct keyspan_serial_private 		*s_priv;
-	struct keyspan_port_private 		*p_priv;
+	struct keyspan_serial_private		*s_priv;
+	struct keyspan_port_private		*p_priv;
 	const struct keyspan_device_details	*d_details;
 	struct urb				*this_urb;
-	int 					err;
+	int					err;
 	u8						prescaler;
 
 	dbg("%s", __func__);
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 17/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (15 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 16/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 18/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index f059f13..7c7b53e 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2294,11 +2294,11 @@ static int keyspan_usa67_send_setup(struct usb_serial *serial,
 				    int reset_port)
 {
 	struct keyspan_usa67_portControlMessage	msg;
-	struct keyspan_serial_private 		*s_priv;
-	struct keyspan_port_private 		*p_priv;
+	struct keyspan_serial_private		*s_priv;
+	struct keyspan_port_private		*p_priv;
 	const struct keyspan_device_details	*d_details;
 	struct urb				*this_urb;
-	int 					err, device_port;
+	int					err, device_port;
 
 	dbg("%s", __func__);
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 18/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (16 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 17/21] " Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 19/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' Ben Minerds
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh errors.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 7c7b53e..d4ae12d 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2219,7 +2219,7 @@ static int keyspan_usa90_send_setup(struct usb_serial *serial,
 		msg.txMode = TXMODE_BYHAND;
 	}
 
-	msg.lcr = (p_priv->cflag & CSTOPB)? STOPBITS_678_2: STOPBITS_5678_1;
+	msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1;
 	switch (p_priv->cflag & CSIZE) {
 	case CS5:
 		msg.lcr |= USA_DATABITS_5;
@@ -2236,7 +2236,7 @@ static int keyspan_usa90_send_setup(struct usb_serial *serial,
 	}
 	if (p_priv->cflag & PARENB) {
 		/* note USA_PARITY_NONE == 0 */
-		msg.lcr |= (p_priv->cflag & PARODD)?
+		msg.lcr |= (p_priv->cflag & PARODD) ?
 			USA_PARITY_ODD : USA_PARITY_EVEN;
 	}
 	if (p_priv->old_cflag != p_priv->cflag) {
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 19/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?'.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (17 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 18/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 20/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 1 checkpatch.sh error.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index d4ae12d..123fdc5 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2365,7 +2365,7 @@ static int keyspan_usa67_send_setup(struct usb_serial *serial,
 	}
 	if (p_priv->cflag & PARENB) {
 		/* note USA_PARITY_NONE == 0 */
-		msg.lcr |= (p_priv->cflag & PARODD)?
+		msg.lcr |= (p_priv->cflag & PARODD) ?
 					USA_PARITY_ODD : USA_PARITY_EVEN;
 	}
 	msg.setLcr = 0xff;
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 20/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (18 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 19/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:17 ` [PATCH 21/21] USB: serial: Changes to conform with checkpatch.sh script. trailing whitespace Ben Minerds
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 3 checkpatch.sh warnings.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 123fdc5..001e11f 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -2473,7 +2473,7 @@ static int keyspan_startup(struct usb_serial *serial)
 {
 	int				i, err;
 	struct usb_serial_port		*port;
-	struct keyspan_serial_private 	*s_priv;
+	struct keyspan_serial_private	*s_priv;
 	struct keyspan_port_private	*p_priv;
 	const struct keyspan_device_details	*d_details;
 
@@ -2535,7 +2535,7 @@ static void keyspan_disconnect(struct usb_serial *serial)
 {
 	int				i, j;
 	struct usb_serial_port		*port;
-	struct keyspan_serial_private 	*s_priv;
+	struct keyspan_serial_private	*s_priv;
 	struct keyspan_port_private	*p_priv;
 
 	dbg("%s", __func__);
@@ -2577,7 +2577,7 @@ static void keyspan_release(struct usb_serial *serial)
 {
 	int				i;
 	struct usb_serial_port		*port;
-	struct keyspan_serial_private 	*s_priv;
+	struct keyspan_serial_private	*s_priv;
 
 	dbg("%s", __func__);
 
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* [PATCH 21/21] USB: serial: Changes to conform with checkpatch.sh script. trailing whitespace.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (19 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 20/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10  9:17 ` Ben Minerds
  2012-05-10  9:51 ` [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Arend van Spriel
  2012-05-10 11:02 ` Alan Cox
  22 siblings, 0 replies; 27+ messages in thread
From: Ben Minerds @ 2012-05-10  9:17 UTC (permalink / raw)
  To: alan; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel, Ben Minerds

Removed 1 checkpatch.sh error.

Signed-off-by: Ben Minerds <puzzleduck@gmail.com>
---
 drivers/usb/serial/keyspan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/serial/keyspan.c b/drivers/usb/serial/keyspan.c
index 001e11f..8f8df13 100644
--- a/drivers/usb/serial/keyspan.c
+++ b/drivers/usb/serial/keyspan.c
@@ -571,7 +571,7 @@ static void	usa28_instat_callback(struct urb *urb)
 
 	if (old_dcd_state != p_priv->dcd_state && old_dcd_state) {
 		tty = tty_port_tty_get(&port->port);
-		if (tty && !C_CLOCAL(tty)) 
+		if (tty && !C_CLOCAL(tty))
 			tty_hangup(tty);
 		tty_kref_put(tty);
 	}
-- 
1.7.2.5


^ permalink raw reply related	[flat|nested] 27+ messages in thread

* Re: [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (20 preceding siblings ...)
  2012-05-10  9:17 ` [PATCH 21/21] USB: serial: Changes to conform with checkpatch.sh script. trailing whitespace Ben Minerds
@ 2012-05-10  9:51 ` Arend van Spriel
  2012-05-10 11:02 ` Alan Cox
  22 siblings, 0 replies; 27+ messages in thread
From: Arend van Spriel @ 2012-05-10  9:51 UTC (permalink / raw)
  To: Ben Minerds; +Cc: alan, gregkh, richard.weinberger, linux-usb, linux-kernel

On 05/10/2012 11:17 AM, Ben Minerds wrote:
> Hi all,
>    Patch series for drivers/usb/serial/keyspan.c to remove warnings and errors running checkpatch.sh
>    Order should not be critical. 

I guess there is a rule is to have small patches to accommodate
reviewing, but this series seems silly. Especially with all those
duplicate subject lines and it is touching only one file.

Gr. AvS


^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10  9:17 ` [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
@ 2012-05-10 10:42   ` Sergei Shtylyov
  2012-05-10 13:59     ` Greg KH
  0 siblings, 1 reply; 27+ messages in thread
From: Sergei Shtylyov @ 2012-05-10 10:42 UTC (permalink / raw)
  To: Ben Minerds; +Cc: alan, gregkh, richard.weinberger, linux-usb, linux-kernel

Hello.

On 10-05-2012 13:17, Ben Minerds wrote:

> Removed 3 checkpatch.sh warnings.

> Signed-off-by: Ben Minerds<puzzleduck@gmail.com>

    But why you didn't merge this with patches 3, 5, 7, 8, 10, 12, 14, 16, 17, 
and 20 which claim to do the same change?!

WBR, Sergei

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':'
  2012-05-10  9:17 ` [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
@ 2012-05-10 10:46   ` Sergei Shtylyov
  0 siblings, 0 replies; 27+ messages in thread
From: Sergei Shtylyov @ 2012-05-10 10:46 UTC (permalink / raw)
  To: Ben Minerds; +Cc: alan, gregkh, richard.weinberger, linux-usb, linux-kernel

Hello.

On 10-05-2012 13:17, Ben Minerds wrote:

> Removed 2 checkpatch.sh errors.

> Signed-off-by: Ben Minerds<puzzleduck@gmail.com>

    Why didn't you merge with patches 9, 13, 15, 18, and 19 which claim to do 
the same thing?

WBR, Sergei

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script.
  2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
                   ` (21 preceding siblings ...)
  2012-05-10  9:51 ` [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Arend van Spriel
@ 2012-05-10 11:02 ` Alan Cox
  22 siblings, 0 replies; 27+ messages in thread
From: Alan Cox @ 2012-05-10 11:02 UTC (permalink / raw)
  To: Ben Minerds; +Cc: gregkh, richard.weinberger, linux-usb, linux-kernel

On Thu, 10 May 2012 19:17:06 +1000
Ben Minerds <puzzleduck@gmail.com> wrote:

> Hi all,
>    Patch series for drivers/usb/serial/keyspan.c to remove warnings and errors running checkpatch.sh
>    Order should not be critical. 

I'm happy with these but can you fold them all into one patch for final
submission ?

Alan


^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs.
  2012-05-10 10:42   ` Sergei Shtylyov
@ 2012-05-10 13:59     ` Greg KH
  0 siblings, 0 replies; 27+ messages in thread
From: Greg KH @ 2012-05-10 13:59 UTC (permalink / raw)
  To: Sergei Shtylyov
  Cc: Ben Minerds, alan, richard.weinberger, linux-usb, linux-kernel

On Thu, May 10, 2012 at 02:42:32PM +0400, Sergei Shtylyov wrote:
> Hello.
> 
> On 10-05-2012 13:17, Ben Minerds wrote:
> 
> >Removed 3 checkpatch.sh warnings.
> 
> >Signed-off-by: Ben Minerds<puzzleduck@gmail.com>
> 
>    But why you didn't merge this with patches 3, 5, 7, 8, 10, 12,
> 14, 16, 17, and 20 which claim to do the same change?!

Yes I agree, you took it too far this time.  Do one "logical" change at
a time please.

Third time's a charm?

greg k-h

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2012-05-10 13:59 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-10  9:17 [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Ben Minerds
2012-05-10  9:17 ` [PATCH 01/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10 10:42   ` Sergei Shtylyov
2012-05-10 13:59     ` Greg KH
2012-05-10  9:17 ` [PATCH 02/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
2012-05-10 10:46   ` Sergei Shtylyov
2012-05-10  9:17 ` [PATCH 03/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 04/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '=' Ben Minerds
2012-05-10  9:17 ` [PATCH 05/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 06/21] USB: serial: Changes to conform with checkpatch.sh script. white space around '(' Ben Minerds
2012-05-10  9:17 ` [PATCH 07/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 08/21] " Ben Minerds
2012-05-10  9:17 ` [PATCH 09/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
2012-05-10  9:17 ` [PATCH 10/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 11/21] USB: serial: Changes to conform with checkpatch.sh script. parentheses not required Ben Minerds
2012-05-10  9:17 ` [PATCH 12/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 13/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
2012-05-10  9:17 ` [PATCH 14/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 15/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
2012-05-10  9:17 ` [PATCH 16/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 17/21] " Ben Minerds
2012-05-10  9:17 ` [PATCH 18/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' and ':' Ben Minerds
2012-05-10  9:17 ` [PATCH 19/21] USB: serial: Changes to conform with checkpatch.sh script. spaces required around '?' Ben Minerds
2012-05-10  9:17 ` [PATCH 20/21] USB: serial: Changes to conform with checkpatch.sh script. space before tabs Ben Minerds
2012-05-10  9:17 ` [PATCH 21/21] USB: serial: Changes to conform with checkpatch.sh script. trailing whitespace Ben Minerds
2012-05-10  9:51 ` [PATCH 00/21] USB: serial: Changes to conform with checkpatch.sh script Arend van Spriel
2012-05-10 11:02 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).