From: Randy Dunlap Make kernel-doc corrections & additions to lib/crc*.c. Add crc functions to kernel-api.tmpl in DocBook. Signed-off-by: Randy Dunlap Signed-off-by: Andrew Morton --- Documentation/DocBook/kernel-api.tmpl | 6 ++ lib/crc-ccitt.c | 6 +- lib/crc16.c | 10 ++-- lib/crc32.c | 54 +++++++++--------------- 4 files changed, 36 insertions(+), 40 deletions(-) diff -puN Documentation/DocBook/kernel-api.tmpl~kernel-doc-for-lib-crcc Documentation/DocBook/kernel-api.tmpl --- 25/Documentation/DocBook/kernel-api.tmpl~kernel-doc-for-lib-crcc Mon Jun 19 14:27:37 2006 +++ 25-akpm/Documentation/DocBook/kernel-api.tmpl Mon Jun 19 14:27:37 2006 @@ -129,6 +129,12 @@ X!Ilib/string.c Command-line Parsing !Elib/cmdline.c + + CRC Functions +!Elib/crc16.c +!Elib/crc32.c +!Elib/crc-ccitt.c + diff -puN lib/crc16.c~kernel-doc-for-lib-crcc lib/crc16.c --- 25/lib/crc16.c~kernel-doc-for-lib-crcc Mon Jun 19 14:27:37 2006 +++ 25-akpm/lib/crc16.c Mon Jun 19 14:27:37 2006 @@ -47,12 +47,12 @@ u16 const crc16_table[256] = { EXPORT_SYMBOL(crc16_table); /** - * Compute the CRC-16 for the data buffer + * crc16 - compute the CRC-16 for the data buffer + * @crc: previous CRC value + * @buffer: data pointer + * @len: number of bytes in the buffer * - * @param crc previous CRC value - * @param buffer data pointer - * @param len number of bytes in the buffer - * @return the updated CRC value + * Returns the updated CRC value. */ u16 crc16(u16 crc, u8 const *buffer, size_t len) { diff -puN lib/crc32.c~kernel-doc-for-lib-crcc lib/crc32.c --- 25/lib/crc32.c~kernel-doc-for-lib-crcc Mon Jun 19 14:27:37 2006 +++ 25-akpm/lib/crc32.c Mon Jun 19 14:27:37 2006 @@ -42,20 +42,21 @@ MODULE_AUTHOR("Matt Domsch > 16) | (x << 16); diff -puN lib/crc-ccitt.c~kernel-doc-for-lib-crcc lib/crc-ccitt.c --- 25/lib/crc-ccitt.c~kernel-doc-for-lib-crcc Mon Jun 19 14:27:37 2006 +++ 25-akpm/lib/crc-ccitt.c Mon Jun 19 14:27:37 2006 @@ -53,9 +53,9 @@ EXPORT_SYMBOL(crc_ccitt_table); /** * crc_ccitt - recompute the CRC for the data buffer - * @crc - previous CRC value - * @buffer - data pointer - * @len - number of bytes in the buffer + * @crc: previous CRC value + * @buffer: data pointer + * @len: number of bytes in the buffer */ u16 crc_ccitt(u16 crc, u8 const *buffer, size_t len) { _