lib/crc-ccitt: Add CCITT-FALSE CRC16 variant
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 3 Jan 2018 23:39:58 +0000 (15:39 -0800)
committerLee Jones <lee.jones@linaro.org>
Mon, 8 Jan 2018 10:08:33 +0000 (10:08 +0000)
commit0d85adb5fbd33daf81276d6fa0f990136eb4bf29
tree541146ecdafb75f21305838862cecb03194d27e8
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
lib/crc-ccitt: Add CCITT-FALSE CRC16 variant

In support of a soon to be published MFD driver using serdev to talk to
a supervisory processor that uses the CCITT-FALSE CRC16 variant in it's
protocol, this patch was tested successfully on an i.MX6 ARM platform.

Link: http://lkml.kernel.org/r/20170413142932.27287-1-andrew.smirnov@gmail.com
Signed-off-by: Andrey Vostrikov <andrey.vostrikov@cogentembedded.com>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Tested-by: Chris Healy <cphealy@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/crc-ccitt.h
lib/crc-ccitt.c