Files
android_kernel_xiaomi_sm8450/drivers/iio/adc
Alexandre Belloni 8f32b6ba56 iio: adc: at91_adc: correct default shtim value
When sample_hold_time is zero (this is the case when DT is not used or if
atmel,adc-sample-hold-time is omitted), then the calculated shtim is large.

Make that 0, which is the default for that register and the ADC will then use a
sane value of 2/ADCCLK or 1/ADCCLK depending on the version.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-03-15 16:32:44 +00:00
..
2013-08-03 18:40:39 +01:00
2013-08-03 18:40:41 +01:00
2013-12-02 16:39:07 -08:00
2013-12-19 15:10:49 +01:00