]> git.karo-electronics.de Git - linux-beck.git/commit
staging:iio:adc:ad7152: Miscellaneous fixes and touch-up
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 2 Sep 2011 16:25:27 +0000 (17:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:03:29 +0000 (16:03 -0700)
commit2b8cb40c9c788929bacbd0c2fdac847e66906805
treee04cd74b52c41a0dead019c5613f46831eb9e782
parente5664293992e7483cf70b82390cd0ce45fa53218
staging:iio:adc:ad7152: Miscellaneous fixes and touch-up

Remove unused define.
Introduce cached SETUP variables.
Wait until calibration finished. (Device returns to idle state)
IIO_CHAN_INFO_CALIBSCALE_SEPARATE use proper scales. (range 1.0 to 1.99999)
i2c_smbus word transactions expect low byte first, therefore swap bytes.
CAPDIFF is bit in SETUP not CFG.

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