OSDN Git Service

iio: adc: stm32-adc: move self-calibration to prepare routine
authorFabrice Gasnier <fabrice.gasnier@st.com>
Tue, 20 Nov 2018 10:12:30 +0000 (11:12 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Nov 2018 13:13:40 +0000 (13:13 +0000)
commit0da98c7b28bd189bfe916d2203edf5b7792784fe
tree23e3c0028c82f3d06e8a235e6c3f7322daf71b3d
parent7f6232e69539971cf9eaed07a6c14ab4a2361133
iio: adc: stm32-adc: move self-calibration to prepare routine

Move self-calibration routine to prepare routine.
- This is precursor patch to ease power management handling.
- This also allow to factorize few error cases (error handling).

Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/stm32-adc.c