commit | 366e65633cf4f117609965cd6e189f2cd11533d2 | [log] [tgz] |
---|---|---|
author | Matt Ranostay <mranostay@gmail.com> | Tue Dec 01 21:05:22 2015 -0800 |
committer | Jonathan Cameron <jic23@kernel.org> | Sat Dec 05 16:40:48 2015 +0000 |
tree | 353c0dbefc78bd9a5174dac2379d842aa264bce5 | |
parent | 8d6c16dd7213fa43702416e3dd1059e9e36bc758 [diff] |
iio: proximity: lidar: optimize i2c transactions Optimize device tranactions using i2c transfers versus multiple possibly racey i2c_smbus_* function calls, and only one transaction for distance measurement. Falls back to smbus method if i2c functionality isn't available. Signed-off-by: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>