OSDN Git Service

iio: light: vl6180: Avoid readback of integration time register
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Sun, 24 Sep 2017 21:59:18 +0000 (23:59 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 9 Oct 2017 19:50:10 +0000 (20:50 +0100)
commitdf698c0402eaa2c949344c45f42a7d85e9506533
tree9315a705878fed406f89b31ec5373bb7dc5d6125
parent1e2ed3d0d27d80aa312b7b0081c0da56e04baeb9
iio: light: vl6180: Avoid readback of integration time register

Instead of reading the value from the register on each query, store the
set value.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vl6180.c