]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/crc7.h
ACPI: fix acpi_find_child_device() invocation in acpi_preset_companion()
[mirror_ubuntu-bionic-kernel.git] / include / linux / crc7.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ad241528
JN
2#ifndef _LINUX_CRC7_H
3#define _LINUX_CRC7_H
4#include <linux/types.h>
5
1836eea2 6extern const u8 crc7_be_syndrome_table[256];
ad241528 7
1836eea2 8static inline u8 crc7_be_byte(u8 crc, u8 data)
ad241528 9{
1836eea2 10 return crc7_be_syndrome_table[crc ^ data];
ad241528
JN
11}
12
1836eea2 13extern u8 crc7_be(u8 crc, const u8 *buffer, size_t len);
ad241528
JN
14
15#endif