Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1215281 > unrolled thread

[PATCH] drivers:staging:vt6655: Fix coding style issues

Started bylysanovsergey@gmail.com
First post2015-08-28 13:00 +0200
Last post2015-09-03 03:10 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] drivers:staging:vt6655: Fix coding style issues lysanovsergey@gmail.com - 2015-08-28 13:00 +0200
    Re: [PATCH] drivers:staging:vt6655: Fix coding style issues Greg KH <greg@kroah.com> - 2015-09-03 03:10 +0200

#1215281 — [PATCH] drivers:staging:vt6655: Fix coding style issues

Fromlysanovsergey@gmail.com
Date2015-08-28 13:00 +0200
Subject[PATCH] drivers:staging:vt6655: Fix coding style issues
Message-ID<q2py2-11n-19@gated-at.bofh.it>
From: Sergey Lysanov <lysanovsergey@gmail.com>

This patch fixes the following issues reported by checkpatch.pl:
- code indent should use tabs where possible
- space prohibited before that ','

Signed-off-by: Sergey Lysanov <lysanovsergey@gmail.com>
---
 drivers/staging/vt6655/rxtx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
index 5875d65..64957de 100644
--- a/drivers/staging/vt6655/rxtx.c
+++ b/drivers/staging/vt6655/rxtx.c
@@ -64,8 +64,8 @@
 /*---------------------  Static Functions  --------------------------*/
 
 /*---------------------  Static Definitions -------------------------*/
-#define CRITICAL_PACKET_LEN      256    /* if packet size < 256 -> in-direct send
-                                            packet size >= 256 -> direct send */
+#define CRITICAL_PACKET_LEN	256 /* if packet size < 256 -> in-direct send
+				     packet size >= 256 -> direct send */
 
 static const unsigned short wTimeStampOff[2][MAX_RATE] = {
 	{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */
@@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
 };
 static const unsigned short wFB_Opt1[2][5] = {
 	{RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
-	{RATE_6M , RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
+	{RATE_6M, RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
 };
 
 #define RTSDUR_BB       0
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1217979

FromGreg KH <greg@kroah.com>
Date2015-09-03 03:10 +0200
Message-ID<q4rcl-58S-1@gated-at.bofh.it>
In reply to#1215281
On Fri, Aug 28, 2015 at 01:51:44PM +0300, lysanovsergey@gmail.com wrote:
> From: Sergey Lysanov <lysanovsergey@gmail.com>
> 
> This patch fixes the following issues reported by checkpatch.pl:
> - code indent should use tabs where possible
> - space prohibited before that ','
> 
> Signed-off-by: Sergey Lysanov <lysanovsergey@gmail.com>
> ---
>  drivers/staging/vt6655/rxtx.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c
> index 5875d65..64957de 100644
> --- a/drivers/staging/vt6655/rxtx.c
> +++ b/drivers/staging/vt6655/rxtx.c
> @@ -64,8 +64,8 @@
>  /*---------------------  Static Functions  --------------------------*/
>  
>  /*---------------------  Static Definitions -------------------------*/
> -#define CRITICAL_PACKET_LEN      256    /* if packet size < 256 -> in-direct send
> -                                            packet size >= 256 -> direct send */
> +#define CRITICAL_PACKET_LEN	256 /* if packet size < 256 -> in-direct send
> +				     packet size >= 256 -> direct send */
>  
>  static const unsigned short wTimeStampOff[2][MAX_RATE] = {
>  	{384, 288, 226, 209, 54, 43, 37, 31, 28, 25, 24, 23}, /* Long Preamble */
> @@ -78,7 +78,7 @@ static const unsigned short wFB_Opt0[2][5] = {
>  };
>  static const unsigned short wFB_Opt1[2][5] = {
>  	{RATE_12M, RATE_18M, RATE_24M, RATE_24M, RATE_36M}, /* fallback_rate0 */
> -	{RATE_6M , RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */
> +	{RATE_6M, RATE_6M,  RATE_12M, RATE_12M, RATE_18M}, /* fallback_rate1 */

The goal was to keep these aligned, which you broke the formatting for
:(
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web