From: Ludovic Desroches Date: Thu, 9 Oct 2014 14:02:00 +0000 (+0100) Subject: iio: adc: at91: don't use the last converted data register X-Git-Tag: fixes-for-v3.18-merge-window~96^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f51956ac8ad302db9b0c4e4232775b1baa7b44;p=pandora-kernel.git iio: adc: at91: don't use the last converted data register If touchscreen mode is enabled and a conversion is requested on another channel, the result in the last converted data register can be a touchscreen relative value. Starting a conversion involves to do a conversion for all active channel. It starts with ADC channels and ends with touchscreen channels. Then if ADC_LCD register is not read quickly, its content may be a touchscreen conversion. To remove this temporal constraint, the conversion value is taken from the channel data register. Signed-off-by: Ludovic Desroches Acked-by: Alexandre Belloni Acked-by: Nicolas Ferre Cc: Stable@vger.kernel.org Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed