diff options
author | Mircea Caprioru <mircea.caprioru@analog.com> | 2019-09-02 16:08:29 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2019-09-08 12:35:31 +0300 |
commit | c88c8cd8265a9c7c2bf57350ab9c64d89c7b596b (patch) | |
tree | 9d1833f5bb5402d3a25b842ea3778f6bf2047acb /include/linux/iio/adc/ad_sigma_delta.h | |
parent | b73b93a2af3392b9b7b8ba7e818ee767499f9655 (diff) | |
download | linux-c88c8cd8265a9c7c2bf57350ab9c64d89c7b596b.tar.xz |
iio: adc: ad_sigma_delta: Export ad_sd_calibrate
This patch exports the ad_sd_calibrate function in order to be able to
call it from outside ad_sigma_delta.
There are cases where the option to calibrate one channel at a time is
necessary (ex. system calibration for zero scale and full scale).
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/iio/adc/ad_sigma_delta.h')
-rw-r--r-- | include/linux/iio/adc/ad_sigma_delta.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/iio/adc/ad_sigma_delta.h b/include/linux/iio/adc/ad_sigma_delta.h index 7716fa0c9fce..8a4e25a7080c 100644 --- a/include/linux/iio/adc/ad_sigma_delta.h +++ b/include/linux/iio/adc/ad_sigma_delta.h @@ -119,6 +119,8 @@ int ad_sd_reset(struct ad_sigma_delta *sigma_delta, int ad_sigma_delta_single_conversion(struct iio_dev *indio_dev, const struct iio_chan_spec *chan, int *val); +int ad_sd_calibrate(struct ad_sigma_delta *sigma_delta, + unsigned int mode, unsigned int channel); int ad_sd_calibrate_all(struct ad_sigma_delta *sigma_delta, const struct ad_sd_calib_data *cd, unsigned int n); int ad_sd_init(struct ad_sigma_delta *sigma_delta, struct iio_dev *indio_dev, |