]> git.baikalelectronics.ru Git - kernel.git/commit
lib/crc7: Shift crc7() output left 1 bit
authorGeorge Spelvin <linux@horizon.com>
Sat, 10 May 2014 14:32:57 +0000 (10:32 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 May 2014 18:26:52 +0000 (14:26 -0400)
commite61ac5401e2e036c5cdcc41b00c9a61738f1cbb4
tree6d47ab85b4eb40d414ba74f2972b80096fd764b2
parent857e0c74393395a5273a5fd3b51502484501e290
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 <linux@horizon.com>
Reviewed-by: Pavel Machek <pavel@ucw.cz>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/mmc/host/mmc_spi.c
drivers/net/wireless/ti/wl1251/acx.c
drivers/net/wireless/ti/wl1251/cmd.c
drivers/net/wireless/ti/wl1251/spi.c
drivers/net/wireless/ti/wlcore/spi.c
include/linux/crc7.h
lib/crc7.c