]> git.baikalelectronics.ru Git - kernel.git/commit
staging: iio: tsl2x7x: correct IIO_EV_INFO_PERIOD values
authorBrian Masney <masneyb@onstation.org>
Fri, 11 May 2018 00:12:20 +0000 (20:12 -0400)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 12 May 2018 11:21:27 +0000 (12:21 +0100)
commit558575deabf7920b536e45c133e339a11008a5a4
treecb4356be2569904c127e55a9e4abeebf36722bd5
parent41c66fecf32f4bc2c3acecce411ac143016a293d
staging: iio: tsl2x7x: correct IIO_EV_INFO_PERIOD values

The thresh periods assumed an integration time of 3ms. This patch adds
support for the correct integration time (2.72ms or 2.73ms). The code
had the ALS filter values as going up to 15, however the values actually
went up to 60 since the values scaled in increments of 5 once the
persistence value went above 3.

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