staging: wilc1000: Use crc7 in lib/ rather than a private copy
authorGeorge Spelvin <lkml@SDF.ORG>
Thu, 26 Mar 2020 15:23:36 +0000 (15:23 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2020 15:58:24 +0000 (16:58 +0100)
commitba22fd4ed1af182be164a766a5316d1b2f250cf5
treed26b25f2d7b36027e9838186177e78fbacabd359
parentfd939d5b77b19839e9147e77af45f1412bdad88b
staging: wilc1000: Use crc7 in lib/ rather than a private copy

The code in lib/ is the desired polynomial, and even includes
the 1-bit left shift in the table rather than needing to code
it explicitly.

While I'm in Kconfig, add a description of what a WILC1000 is.
Kconfig questions that require me to look up a data sheet to
find out that I probably don't have one are a pet peeve.

Cc: Adham Abozaeid <adham.abozaeid@microchip.com>
Cc: linux-wireless@vger.kernel.org
Reviewed-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: George Spelvin <lkml@sdf.org>
Link: https://lore.kernel.org/r/20200326152251.19094-1-ajay.kathat@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/Kconfig
drivers/staging/wilc1000/spi.c