iio: accel: adxl345: add calibration offset support
authorAkinobu Mita <akinobu.mita@gmail.com>
Mon, 25 Jun 2018 15:22:42 +0000 (00:22 +0900)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 30 Jun 2018 17:27:27 +0000 (18:27 +0100)
commit732238e22e4c5497bd76d02adcf5c4fcba6dcb67
treed616cd736458012782adeb6b35f56c30e1344aa2
parent9048f1f18a70a01eaa3c8e7166fdb2538929d780
iio: accel: adxl345: add calibration offset support

The ADXL345 provides the offset adjustment registers for each axis.
This adds the iio channel information for the calibraion offsets with
that feature.

Cc: Eva Rachel Retuya <eraretuya@gmail.com>
Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adxl345_core.c