iio: adc: rockchip_saradc: reset saradc controller before programming it
authorCaesar Wang <wxt@rock-chips.com>
Wed, 27 Jul 2016 14:24:04 +0000 (22:24 +0800)
committerJonathan Cameron <jic23@kernel.org>
Tue, 23 Aug 2016 18:05:03 +0000 (19:05 +0100)
commit543852af8e5902aee8f7c72c89e1513663e0f696
treea0dec27218598952eb683f3461331d4f8e8e623c
parent7ac61a062f3147dc23e3f12b9dfe7c4dd35f9cb8
iio: adc: rockchip_saradc: reset saradc controller before programming it

SARADC controller needs to be reset before programming it, otherwise
it will not function properly.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Cc: Jonathan Cameron <jic23@kernel.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: linux-iio@vger.kernel.org
Cc: linux-rockchip@lists.infradead.org
Tested-by: Guenter Roeck <linux@roeck-us.net>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/iio/adc/rockchip-saradc.txt
drivers/iio/adc/Kconfig
drivers/iio/adc/rockchip_saradc.c