twl4030-madc: Request processed values in twl4030_get_madc_conversion
authorPaul Kocialkowski <contact@paulk.fr>
Sat, 24 May 2014 12:09:00 +0000 (13:09 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 2 Jun 2014 20:53:27 +0000 (21:53 +0100)
commite0326be0cded13dfc3a24cbeece1f1ae64348a0e
tree636046ef3ca6cdc3f1f4752317f053be98d8a961
parentc404618cd06dad771495fe1cf9d5a63b5664f65f
twl4030-madc: Request processed values in twl4030_get_madc_conversion

Not setting the raw parameter in the request causes it to be randomly
initialized to a value that might be different from zero or zero. This leads to
values that are randomly either raw or processed, making it very difficult to
make reliable use of the values.

Cc: Stable@vger.kernel.org
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Acked-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/twl4030-madc.c