All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Alison Schofield <amsfield22@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH v2 5/5] staging: r8723au: use kernel preferred style for commenting
Date: Tue, 27 Oct 2015 14:45:35 +0900	[thread overview]
Message-ID: <20151027054535.GB31187@kroah.com> (raw)
In-Reply-To: <20151026031243.GB2104@Ubuntu-D830>

On Sun, Oct 25, 2015 at 08:12:44PM -0700, Alison Schofield wrote:
> On Sat, Oct 24, 2015 at 07:41:21PM -0700, Greg KH wrote:
> > On Tue, Oct 20, 2015 at 11:10:41PM -0700, Alison Schofield wrote:
> > > Reworked comments per kernel coding style to improve readability.
> > > 
> > > Addresses checkpatch.pl:
> > > 	WARNING: Block comments use * on subsequent lines
> > > 
> > > Signed-off-by: Alison Schofield <amsfield22@gmail.com>
> > > ---
> > >  drivers/staging/rtl8723au/core/rtw_cmd.c | 159 ++++++++++++++++---------------
> > >  1 file changed, 80 insertions(+), 79 deletions(-)
> > > 
> > > diff --git a/drivers/staging/rtl8723au/core/rtw_cmd.c b/drivers/staging/rtl8723au/core/rtw_cmd.c
> > > index 6330933..4db4dfe 100644
> > > --- a/drivers/staging/rtl8723au/core/rtw_cmd.c
> > > +++ b/drivers/staging/rtl8723au/core/rtw_cmd.c
> > > @@ -102,83 +102,76 @@ static struct cmd_hdl wlancmds[] = {
> > >  			     tdls_hdl23a)
> > >  };
> > >  
> > > -struct _cmd_callback	rtw_cmd_callback[] = {
> > > -	{GEN_CMD_CODE(_Read_MACREG), NULL}, /*0*/
> > > +struct _cmd_callback rtw_cmd_callback[] = {
> > > +	{GEN_CMD_CODE(_Read_MACREG), NULL},				/*0*/
> > >  	{GEN_CMD_CODE(_Write_MACREG), NULL},
> > >  	{GEN_CMD_CODE(_Read_BBREG), &rtw_getbbrfreg_cmdrsp_callback23a},
> > >  	{GEN_CMD_CODE(_Write_BBREG), NULL},
> > >  	{GEN_CMD_CODE(_Read_RFREG), &rtw_getbbrfreg_cmdrsp_callback23a},
> > > -	{GEN_CMD_CODE(_Write_RFREG), NULL}, /*5*/
> > > +	{GEN_CMD_CODE(_Write_RFREG), NULL},
> > >  	{GEN_CMD_CODE(_Read_EEPROM), NULL},
> > >  	{GEN_CMD_CODE(_Write_EEPROM), NULL},
> > >  	{GEN_CMD_CODE(_Read_EFUSE), NULL},
> > >  	{GEN_CMD_CODE(_Write_EFUSE), NULL},
> > > -
> > > -	{GEN_CMD_CODE(_Read_CAM),	NULL},	/*10*/
> > > -	{GEN_CMD_CODE(_Write_CAM),	 NULL},
> > > +	{GEN_CMD_CODE(_Read_CAM), NULL},				/*10*/
> > > +	{GEN_CMD_CODE(_Write_CAM), NULL},
> > >  	{GEN_CMD_CODE(_setBCNITV), NULL},
> > >  	{GEN_CMD_CODE(_setMBIDCFG), NULL},
> > > -	{GEN_CMD_CODE(_JoinBss), &rtw_joinbss_cmd23a_callback},  /*14*/
> > > -	{GEN_CMD_CODE(_DisConnect), &rtw_disassoc_cmd23a_callback}, /*15*/
> > > +	{GEN_CMD_CODE(_JoinBss), &rtw_joinbss_cmd23a_callback},
> > > +	{GEN_CMD_CODE(_DisConnect), &rtw_disassoc_cmd23a_callback},
> > 
> > Why delete the comments?
> >
> The comments note the place in the list. I didn't delete them entirely,
> but replaced them with a marker every 10 items.  This was the second of
> these two lists and I tried to give them the same look n feel.  

But maybe items 14 and 15 were "special" and wanted to be found easier,
you don't know :)

Just leave them there please.

thanks,

greg k-h


      reply	other threads:[~2015-10-27  5:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-19 19:57 [PATCH 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-19 19:58 ` [PATCH 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-19 19:59 ` [PATCH 2/5] staging: r8723au: replace printk() with pr_err() Alison Schofield
2015-10-19 20:09   ` [Outreachy kernel] " Julia Lawall
2015-10-21  5:51     ` Alison Schofield
2015-10-19 20:00 ` [PATCH 3/5] staging: r8723au: use kernel preferred style for block comments Alison Schofield
2015-10-19 20:07   ` [Outreachy kernel] " Julia Lawall
2015-10-20  2:29     ` Alison Schofield
2015-10-20  5:08       ` Julia Lawall
2015-10-19 20:02 ` [PATCH 4/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-19 20:06   ` [Outreachy kernel] " Julia Lawall
2015-10-19 20:45     ` Alison Schofield
     [not found]     ` <20151019203548.GA23803@Ubuntu-D830>
     [not found]       ` <alpine.DEB.2.02.1510192241110.2034@localhost6.localdomain6>
2015-10-20  2:34         ` Alison Schofield
2015-10-19 20:11 ` [PATCH 5/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21  5:57 ` [PATCH v2 0/5] staging: r8723au: fix multiple checkpatch issues Alison Schofield
2015-10-21  6:01   ` [PATCH v2 1/5] staging: r8723au: break parameter list at separators and align to open braces Alison Schofield
2015-10-25  2:40     ` [Outreachy kernel] " Greg KH
2015-10-26  3:07       ` Alison Schofield
2015-10-27  5:44         ` Greg KH
2015-11-08 21:58           ` Jes Sorensen
2015-10-21  6:06   ` [PATCH v2 2/5] staging: r8723au: replace printk() with netdev_err() Alison Schofield
2015-10-21  6:08   ` [PATCH v2 3/5] staging: r8723au: move constant to right of comparison test Alison Schofield
2015-10-21  6:09   ` [PATCH v2 4/5] staging: r8723au: add & use local variable to simplify references Alison Schofield
2015-10-21  6:10   ` [PATCH v2 5/5] staging: r8723au: use kernel preferred style for commenting Alison Schofield
2015-10-25  2:41     ` [Outreachy kernel] " Greg KH
2015-10-26  3:12       ` Alison Schofield
2015-10-27  5:45         ` 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=20151027054535.GB31187@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=amsfield22@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.