commit | 1e2ed3d0d27d80aa312b7b0081c0da56e04baeb9 | [log] [tgz] |
---|---|---|
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | Sun Sep 24 23:59:17 2017 +0200 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Mon Oct 09 20:50:08 2017 +0100 |
tree | a576b826c53f096cc405997e5ed956e7a1bc94a2 | |
parent | 1540d0106bcbc4e52013d759a0a0752ae7b4a09d [diff] |
iio: light: vl6180: Move range check to integration time setter, cleanup This improves code uniformity (range checks for als_gain are also done in the setter). Also unmangle rounding and calculation of register value. The calculated integration time it_ms is required in the next patch of the series. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>