staging: iio: tsl2x7x: use auto increment I2C protocol
authorBrian Masney <masneyb@onstation.org>
Sat, 24 Mar 2018 20:05:52 +0000 (16:05 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 25 Mar 2018 17:08:42 +0000 (18:08 +0100)
commit19422bde046a7fa549565300d0a4c4dc1e8d585a
treedeeec2f78f50c0c6ce82847f8d8afa5a42a07001
parent591298e54ceaf75c1322979dd02466961c5e23dc
staging: iio: tsl2x7x: use auto increment I2C protocol

The hardware supports 16-bit ALS and proximity readings, however the
datasheet recommends using the I2C auto increment protocol so that the
correct high and low bytes are read even if the integration cycle ends
between reading the lower and upper registers.

Signed-off-by: Brian Masney <masneyb@onstation.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/light/tsl2x7x.c