]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0172a4932a761b67a315a60dadd1e1238717e6d5
treedeeec2f78f50c0c6ce82847f8d8afa5a42a07001
parente589af43fe21f077bc9695551576049270d8692f
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