]> git.baikalelectronics.ru Git - kernel.git/commit
iio: light: vcnl4000: update sampling periods for vcnl4040
authorTomas Novotny <tomas@novotny.cz>
Tue, 18 Feb 2020 15:44:51 +0000 (16:44 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Mar 2020 16:21:23 +0000 (16:21 +0000)
commitbeb2bc2648ce8f505282dd13f89c12ce4487e0ca
tree9dddbe02a265cf2a9f1bee55c676bc2b6141297c
parent3075b2f0c40b2ab62146c374990223c0e5bd6a6b
iio: light: vcnl4000: update sampling periods for vcnl4040

Vishay has published a new version of "Designing the VCNL4200 Into an
Application" application note in October 2019. The new version specifies
that there is +-20% of part to part tolerance. Although the application
note is related to vcnl4200, according to support the vcnl4040's "ASIC
is quite similar to that one for the VCNL4200".

So update the sampling periods (and comment), including the correct
sampling period for proximity. Both sampling periods are lower. Users
relying on the blocking behaviour of reading will get proximity
measurements much earlier.

Fixes: ccf529a29963 ("iio: light: vcnl4000 add support for the VCNL4040 proximity and light sensor")
Reviewed-by: Guido Günther <agx@sigxcpu.org>
Tested-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Tomas Novotny <tomas@novotny.cz>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c