include/linux/crc4.h
0 → 100644
+8
−0
+8
−0
+1
−0
lib/crc4.c
0 → 100644
+46
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Add a little helper for crc4 calculations. This works 4-bits-at-a-time, using a simple table approach. We will need this in the FSI core code, as well as any master implementations that need to calculate CRCs in software. Signed-off-by:Jeremy Kerr <jk@ozlabs.org> Signed-off-by:
Chris Bostic <cbostic@linux.vnet.ibm.com> Signed-off-by:
Joel Stanley <joel@jms.id.au> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>