staging:iio:adc:ad7152 bring more into line with abi.
authorJonathan Cameron <jic23@cam.ac.uk>
Fri, 2 Sep 2011 16:25:25 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:03:28 +0000 (16:03 -0700)
commitea993a5193874117fa0278c3b08e9e050089d860
tree6eb48786704b013c902a191e5ff8563205a6bfa1
parent4050f493996b3fbebe4ee0db4a16083d67d6e85b
staging:iio:adc:ad7152 bring more into line with abi.

Get rid of explicit writes to registers and conversion mode
control.

Couple of bits I'm unsure about.
* Do calibration modes self reset when done?  How do you tell they are
done?

* Should we poll the status register just to be sure we have a new conversion?

All done sans hardware.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Michael Hennerich <Michael.Hennerich@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7152.c