commit | bf23cee62d5953927758ff6287d300dc945afc84 | [log] [tgz] |
---|---|---|
author | Matt Ranostay <mranostay@gmail.com> | Tue Sep 22 21:25:09 2015 -0700 |
committer | Jonathan Cameron <jic23@kernel.org> | Wed Sep 30 18:20:53 2015 +0100 |
tree | febdee95cce25ad92f0fae440d662ae2144c5d65 | |
parent | 83234554ef3a9549d83d08c9aafbe041c75d3a89 [diff] |
iio: chemical: vz89x hardware i2c workaround Chipset sometime updates in the middle of a reading causing it to reset the data pointer, and causing invalid reading of previous data. We can check for this invalid state by reading MSB of the resistance reading that is always zero, and by also confirming the VOC_short isn't zero. Signed-off-by: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>