aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crc16.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crc16.c')
-rw-r--r--lib/crc16.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/crc16.c b/lib/crc16.c
index 011fe573c666..8737b084d1f9 100644
--- a/lib/crc16.c
+++ b/lib/crc16.c
@@ -47,12 +47,12 @@ u16 const crc16_table[256] = {
47EXPORT_SYMBOL(crc16_table); 47EXPORT_SYMBOL(crc16_table);
48 48
49/** 49/**
50 * Compute the CRC-16 for the data buffer 50 * crc16 - compute the CRC-16 for the data buffer
51 * @crc: previous CRC value
52 * @buffer: data pointer
53 * @len: number of bytes in the buffer
51 * 54 *
52 * @param crc previous CRC value 55 * Returns the updated CRC value.
53 * @param buffer data pointer
54 * @param len number of bytes in the buffer
55 * @return the updated CRC value
56 */ 56 */
57u16 crc16(u16 crc, u8 const *buffer, size_t len) 57u16 crc16(u16 crc, u8 const *buffer, size_t len)
58{ 58{