X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fcrc8.h;h=f7c300a9b1ed0591d72b2de469a46d7e6bc52a76;hb=7dd97af52309364f7ec8305a86507ad86e524b62;hp=b5fd2ac9d6e5899c20552cdee1561df7a244012f;hpb=bf46e7d8d134521301ff02b6d97e8998aa10a83d;p=u-boot diff --git a/include/linux/crc8.h b/include/linux/crc8.h index b5fd2ac9d6..f7c300a9b1 100644 --- a/include/linux/crc8.h +++ b/include/linux/crc8.h @@ -14,10 +14,11 @@ * This uses an x^8 + x^2 + x + 1 polynomial. A table-based algorithm would * be faster, but for only a few bytes it isn't worth the code size * + * @crc_start: CRC8 start value * @vptr: Buffer to checksum * @len: Length of buffer in bytes * @return CRC8 checksum */ -unsigned int crc8(const unsigned char *vptr, int len); +unsigned int crc8(unsigned int crc_start, const unsigned char *vptr, int len); #endif