Commit Graph
2 Commits
Author SHA1 Message Date
George Spelvin 1836eea209 lib/crc7: Shift crc7() output left 1 bit
This eliminates a 1-bit left shift in every single caller,
and makes the inner loop of the CRC computation more efficient.

Renamed crc7 to crc7_be (big-endian) since the interface changed.

Also purged #include <linux/crc7.h> from files that don't use it at all.

Signed-off-by: George Spelvin <[email protected]>
Reviewed-by: Pavel Machek <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
2014-05-16 14:26:52 -04:00
Jan Nikitenko ad241528c4 CRC7 support
Add CRC7 routines, used for example in MMC over SPI communication.
Kerneldoc updates

[[email protected]: fix funny mix of const and non-const]
Signed-off-by: Jan Nikitenko <[email protected]>
Signed-off-by: David Brownell <[email protected]>
Cc: "Randy.Dunlap" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2007-07-17 10:23:04 -07:00