From: "Randy.Dunlap" <rdunlap@xenotime.net>
To: Ivo van Doorn <ivdoorn@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] CRC ITU-T V.41
Date: Mon, 12 Jun 2006 10:39:54 -0700 [thread overview]
Message-ID: <20060612103954.1f2a1f0e.rdunlap@xenotime.net> (raw)
In-Reply-To: <200606121932.37990.IvDoorn@gmail.com>
On Mon, 12 Jun 2006 19:32:34 +0200 Ivo van Doorn wrote:
> On Monday 12 June 2006 19:09, Randy.Dunlap wrote:
> > On Mon, 12 Jun 2006 16:17:04 +0200 Ivo van Doorn wrote:
> >
>
> > > +/**
> > > + * Compute the CRC-ITU-T for the data buffer
> >
> > Please use Linux kernel-doc format. See
> > Documentation/kernel-doc-nano-HOWTO.txt. Basically:
>
> Ah ok. I just followed the crc16 approach.
OK, I'll plan to fix that file's kernel-doc then.
> > * crc_itu_t - compute the CRC-ITU-T for the data buffer
> >
> > and make parameter changes below:
> >
> > > + *
> > > + * @param crc previous CRC value
> > > + * @param buffer data pointer
> > > + * @param len number of bytes in the buffer
> >
> > * @crc: previous CRC value
> > * @buffer: data pointer
> > * @len: number of bytes in the buffer
> > *
> > * Returns the updated CRC value.
> >
> > > + * @return the updated CRC value
> > > + */
> > > +u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)
> > > +{
>
> The updated patch would then become:
>
> Signed-off-by Ivo van Doorn <IvDoorn@gmail.com>
>
> ---
>
> +/**
> + * crc_itu_t - Compute the CRC-ITU-T for the data buffer
> + *
> + * @crc previous CRC value
> + * @buffer data pointer
> + * @len number of bytes in the buffer
The kernel-doc doc. says to put a colon after each parameter name,
so please do that too. Otherwise looks good, thanks.
> + *
> + * Returns the updated CRC value
> + */
> +u16 crc_itu_t(u16 crc, const u8 *buffer, size_t len)
> +{
---
~Randy
next prev parent reply other threads:[~2006-06-12 17:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-12 14:17 Ivo van Doorn
2006-06-12 17:09 ` Randy.Dunlap
2006-06-12 17:32 ` Ivo van Doorn
2006-06-12 17:39 ` Randy.Dunlap [this message]
2006-06-12 17:48 ` Ivo van Doorn
2006-06-12 18:05 ` Jan Engelhardt
2006-06-12 20:59 ` Ivo van Doorn
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=20060612103954.1f2a1f0e.rdunlap@xenotime.net \
--to=rdunlap@xenotime.net \
--cc=ivdoorn@gmail.com \
--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®