iio: adc: Fix polling of INA219 conversion ready flag
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Wed, 24 May 2017 00:09:07 +0000 (02:09 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 1 Jul 2017 09:16:47 +0000 (10:16 +0100)
commite5c2ce6bacfa98fdfc6fe984833656fabaeecd2b
tree0fdce20036bd4215ec2fdb5527aaf04555982a7a
parent7b34697e96b6b474c2a9a83d7cb48fa99c956692
iio: adc: Fix polling of INA219 conversion ready flag

While the INA226 has a conversion ready flag (CVRF) in the R/W Mask/Enable
register with read-to-clear semantics, the corresponding bit of the INA219
(CNVR) is part of the bus voltage register. The flag is cleared by reading
the power register.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/ina2xx-adc.c