Re: [PATCH v3 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-30 Thread Jonathan Cameron
On Sun, 24 Sep 2017 23:59:18 +0200 Stefan Brüns wrote: > Instead of reading the value from the register on each query, store the > set value. > > Signed-off-by: Stefan Brüns Applied to the togreg branch of iio.git and pushed out as testing. Jonathan > > --- > > Changes in v3: > - Use IIO_VA

[PATCH v3 2/4] iio: light: vl6180: Avoid readback of integration time register

2017-09-24 Thread Stefan Brüns
Instead of reading the value from the register on each query, store the set value. Signed-off-by: Stefan Brüns --- Changes in v3: - Use IIO_VAL_FRACTIONAL for integration time return value Changes in v2: None drivers/iio/light/vl6180.c | 15 +-- 1 file changed, 9 insertions(+), 6