staging: iio: adc: ad7280a: use crc8.h API to build crc table
authorSlawomir Stepien <sst@poczta.fm>
Thu, 18 Oct 2018 18:59:33 +0000 (20:59 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 21 Oct 2018 13:30:56 +0000 (14:30 +0100)
commit4cd62a5425115ad14b54f2c7dece597c0c57d701
tree212db963f2fb07ebf9e24c092b2fd9162a016f28
parent0559ef7fde67bc6c83c6eb6329dbd6649528263e
staging: iio: adc: ad7280a: use crc8.h API to build crc table

The custom build function ad7280_crc8_build_table is not needed. The
crc8_populate_msb function from linux/crc8.h will build the same crc
table.

Signed-off-by: Slawomir Stepien <sst@poczta.fm>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/adc/Kconfig
drivers/staging/iio/adc/ad7280a.c