mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Andrew Miller <amiller@amilx.com>
Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Staging: rtl8187se: r8180_core.c: Fix spacing issue
Date: Tue, 13 Mar 2012 15:44:11 -0700	[thread overview]
Message-ID: <20120313224411.GB12677@kroah.com> (raw)
In-Reply-To: <1331441798-3507-1-git-send-email-amiller@amilx.com>

On Sat, Mar 10, 2012 at 11:56:38PM -0500, Andrew Miller wrote:
> Fix spacing coding style issues
> 
> Signed-off-by: Andrew Miller <amiller@amilx.com>
> ---
>  drivers/staging/rtl8187se/r8180_core.c |   46 +++++++++++++++++--------------
>  1 files changed, 25 insertions(+), 21 deletions(-)
> 
> diff --git a/drivers/staging/rtl8187se/r8180_core.c b/drivers/staging/rtl8187se/r8180_core.c
> index 05f25eb..6a0c592 100644
> --- a/drivers/staging/rtl8187se/r8180_core.c
> +++ b/drivers/staging/rtl8187se/r8180_core.c
> @@ -2617,28 +2617,32 @@ void watch_dog_adaptive(unsigned long data)
>  }
>  
>  static CHANNEL_LIST ChannelPlan[] = {
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	36,40,44,48,52,56,60,64},19},		/* FCC */
> -	{{1,2,3,4,5,6,7,8,9,10,11},11},		/* IC */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,36,40,44,48,52,56,60,64},21},	/* ETSI */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,36,40,44,48,52,56,60,64},21},	/* Spain. Change to ETSI. */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,36,40,44,48,52,56,60,64},21},	/* France. Change to ETSI. */
> -	{{14,36,40,44,48,52,56,60,64},9},	/* MKK */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,14, 36,40,44,48,52,56,60,64},22}, /* MKK1 */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,36,40,44,48,52,56,60,64},21},	/* Israel. */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,34,38,42,46},17},			/* For 11a , TELEC */
> -	{{1,2,3,4,5,6,7,8,9,10,11,
> -	12,13,14},14},  /* For Global Domain. 1-11:active scan,
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	36, 40, 44, 48, 52, 56, 60, 64}, 19},	/* FCC */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11}, 11}, /* IC */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 36, 40, 44, 48, 52, 56, 60, 64}, 21}, /* ETSI */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 36, 40, 44, 48, 52, 56, 60, 64}, 21}, /* Spain. Change
> +						       * to ETSI. */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 36, 40, 44, 48, 52, 56, 60, 64}, 21}, /* France. Change
> +						       * to ETSI. */
> +	{{ 14, 36, 40, 44, 48, 52, 56, 60, 64}, 9}, /* MKK */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 14, 36, 40, 44, 48, 52, 56, 60, 64}, 22}, /* MKK1 */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 36, 40, 44, 48, 52, 56, 60, 64}, 21}, /* Israel. */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 34, 38, 42, 46}, 17},		/* For 11a , TELEC */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,
> +	12, 13, 14}, 14},  /* For Global Domain. 1-11:active scan,

That's easier to read?  Not to me, how about putting them each on one
line?  Yes, that makes for longer lines, but it makes more sense, right?

And what's with the first ' ' on each set of numbers?

>  			 * 12-14 passive scan. //+YJ, 080626 */
> -	{{1,2,3,4,5,6,7,8,9,10,11,12,13},13} /* world wide 13: ch1~ch11 active
> -					      * scan, ch12~13 passive //lzm
> -					      * add 080826 */
> +	{{ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, 13} /* world wide 13:
> +							    * ch1~ch11 active
> +					      		    * scan, ch12~13
> +					      		    * passive //lzm
> +					      		    * add 080826 */

That makes the comment impossible to read.

Please be smarter, this is to be done to make it easy for humans, not to
just blindly follow a tool's "warnings".

thanks,

greg k-h

      reply	other threads:[~2012-03-13 22:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-11  4:56 Andrew Miller
2012-03-13 22:44 ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120313224411.GB12677@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=amiller@amilx.com \
    --cc=devel@driverdev.osuosl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®