From: Alexandre Belloni Date: Mon, 3 Mar 2014 18:07:00 +0000 (+0000) Subject: iio: adc: at91_adc: correct default shtim value X-Git-Tag: omap-for-v3.16/pm-signed~46^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f32b6ba56ef8c8434635b9f08ff6a23510960a5;p=pandora-kernel.git 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 Acked-by: Josh Wu Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed