iio: ad799x: Fix ad7991/ad7995/ad7999 config setup
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 26 Nov 2014 10:35:35 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2015 16:29:45 +0000 (08:29 -0800)
commit13b2e3a5c422daa63f1e913cf25462cb9c40dcd0
treec6b44fc2545b4555c8f4485a4fcbffb13be35b43
parent8d622085d61265c0cf35999634757b04862d464a
iio: ad799x: Fix ad7991/ad7995/ad7999 config setup

commit 2eacc608b3bf3519fc353c558454873f4589146d upstream.

The ad7991/ad7995/ad7999 does not have a configuration register like the
other devices that can be written and read. The configuration is written as
part of the conversion sequence.

Fixes: 0f7ddcc1bff1 ("iio:adc:ad799x: Write default config on probe and reset alert status on probe")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Tested-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/adc/ad799x.c