mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-08-27 06:50:37 +00:00

Now that neither crc16_table nor crc16_byte() is used outside lib/crc16.c, fold them into lib/crc16.c. Acked-by: Ard Biesheuvel <ardb@kernel.org> Link: https://lore.kernel.org/r/20250513022115.39109-3-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
22 lines
379 B
C
22 lines
379 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* crc16.h - CRC-16 routine
|
|
*
|
|
* Implements the standard CRC-16:
|
|
* Width 16
|
|
* Poly 0x8005 (x^16 + x^15 + x^2 + 1)
|
|
* Init 0
|
|
*
|
|
* Copyright (c) 2005 Ben Gardner <bgardner@wabtec.com>
|
|
*/
|
|
|
|
#ifndef __CRC16_H
|
|
#define __CRC16_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
u16 crc16(u16 crc, const u8 *p, size_t len);
|
|
|
|
#endif /* __CRC16_H */
|
|
|