From: Ian Abbott <abbotti@mev.co.uk>
To: "Moritz König" <moritz.koenig@fau.de>,
"H Hartley Sweeten" <hsweeten@visionengravers.com>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Cc: Fabian Lang <fabian.lang@fau.de>, linux-kernel@i4.cs.fau.de
Subject: Re: [PATCH 1/3] STAGING: COMEDI: Fixed format of comments in plx9080.h
Date: Wed, 16 Dec 2015 18:41:03 +0000 [thread overview]
Message-ID: <5671B03F.2030103@mev.co.uk> (raw)
In-Reply-To: <c7f8037bcf188dfbe1c558cbb47027def085ea78.1449939684.git.moritz.koenig@fau.de>
On 12/12/15 17:09, Moritz König wrote:
> This patch fixes the format of comments in plx9080.h.
>
> Signed-off-by: Moritz König <moritz.koenig@fau.de>
> Signed-off-by: Fabian Lang <fabian.lang@fau.de>
> ---
> drivers/staging/comedi/drivers/plx9080.h | 132 ++++++++++++++++++++++---------
> 1 file changed, 95 insertions(+), 37 deletions(-)
>
> diff --git a/drivers/staging/comedi/drivers/plx9080.h b/drivers/staging/comedi/drivers/plx9080.h
> index 2570653..40514f7 100644
> --- a/drivers/staging/comedi/drivers/plx9080.h
> +++ b/drivers/staging/comedi/drivers/plx9080.h
> @@ -34,7 +34,8 @@ struct plx_dma_desc {
> /* transfer_size is in bytes, only first 23 bits of register are used */
> __le32 transfer_size;
> /* address of next descriptor (quad word aligned), plus some
> - * additional bits (see PLX_DMA0_DESCRIPTOR_REG) */
> + * additional bits (see PLX_DMA0_DESCRIPTOR_REG)
> + */
> __le32 next;
We prefer the usual block comment style:
/*
* Like
* this
*/
> };
>
> @@ -46,23 +47,38 @@ struct plx_dma_desc {
> **
> **********************************************************************/
>
> -#define PLX_LAS0RNG_REG 0x0000 /* L, Local Addr Space 0 Range Register */
> -#define PLX_LAS1RNG_REG 0x00f0 /* L, Local Addr Space 1 Range Register */
> +#define PLX_LAS0RNG_REG 0x0000 /* L, Local Addr Space 0 Range
> + * Register
> + */
> +#define PLX_LAS1RNG_REG 0x00f0 /* L, Local Addr Space 1 Range
> + * Register
> + */
I suggest moving such comments that would wrap over 80 columns onto the
previous line, like this:
/* L, Local Addr Space 0 Range Register */
#define PLX_LAS0RNG_REG 0x0000
/* L, Local Addr Space 1 Range Register */
#define PLX_LAS1RNG_REG 0x00f0
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=-
-=( Web: http://www.mev.co.uk/ )=-
next prev parent reply other threads:[~2015-12-16 18:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-12 17:09 [PATCH 0/3] STAGING: COMEDI: checkpatch.pl cleanups in plx9080.h Moritz König
2015-12-12 17:09 ` [PATCH 1/3] STAGING: COMEDI: Fixed format of comments " Moritz König
2015-12-16 18:41 ` Ian Abbott [this message]
2015-12-17 15:53 ` [PATCH v2 0/3] STAGING: COMEDI: checkpatch.pl cleanups " Moritz König
2015-12-17 15:53 ` [PATCH v2 1/3] STAGING: COMEDI: Fixed format of comments " Moritz König
2015-12-17 19:06 ` Ian Abbott
2015-12-17 15:53 ` [PATCH v2 2/3] STAGING: COMEDI: Added spaces around binary operators " Moritz König
2015-12-17 15:53 ` [PATCH v2 3/3] STAGING: COMEDI: Using kernel types " Moritz König
2015-12-12 17:09 ` [PATCH 2/3] STAGING: COMEDI: Added spaces around binary operators " Moritz König
2015-12-16 18:41 ` Ian Abbott
2015-12-12 17:09 ` [PATCH 3/3] STAGING: COMEDI: Using kernel types " Moritz König
2015-12-16 18:42 ` Ian Abbott
2015-12-16 19:39 ` Moritz Fischer
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=5671B03F.2030103@mev.co.uk \
--to=abbotti@mev.co.uk \
--cc=devel@driverdev.osuosl.org \
--cc=fabian.lang@fau.de \
--cc=gregkh@linuxfoundation.org \
--cc=hsweeten@visionengravers.com \
--cc=linux-kernel@i4.cs.fau.de \
--cc=linux-kernel@vger.kernel.org \
--cc=moritz.koenig@fau.de \
/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.