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

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. This explains the drift
seen during experiments. The proximity pulse width is also changed from
32us to 30us. According to the support, the tolerance also applies to
ambient light.

So update the sampling periods. As the reading is blocking, current
users may notice slightly longer response time.

Fixes: 58c3da58aaf2 ("iio: vcnl4000: add support for VCNL4200")
Reviewed-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