aboutsummaryrefslogtreecommitdiff
path: root/lib/crc4.c
AgeCommit message (Collapse)AuthorFilesLines
2017-09-26docs: clean up and add rest of CRC functions to kernel-api.rstRandy Dunlap1-1/+1
Add the rest of the CRC library functions to kernel-api. - try to clarify crc32() by adding '@' to a function parameter - reorder kernel-api CRC functions to be less random - add more CRC functions to kernel-api - correct the function parameter names in several places Signed-off-by: Randy Dunlap <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]>
2017-06-09lib: Add crc4 moduleJeremy Kerr1-0/+46
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 <[email protected]> Signed-off-by: Chris Bostic <[email protected]> Signed-off-by: Joel Stanley <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>