iio: vcnl4000: Add buffer support for VCNL4010/20.
authorMathieu Othacehe <m.othacehe@gmail.com>
Sun, 3 May 2020 09:29:59 +0000 (11:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 May 2020 13:53:57 +0000 (14:53 +0100)
commit8fe78d5261e750205e5dab0681c4d62e4b3dbc28
treeae93bd02c9a2174e9797ecdfd796e2bd44dfeebb
parentf6889c1b009e22238725b57e0df65df025e25475
iio: vcnl4000: Add buffer support for VCNL4010/20.

The VCNL4010 and VCNL4020 chips are able to raise interrupts on data ready.
Use it to provide triggered buffer support for proximity data.

Those two chips also provide ambient light data. However, they are sampled
at different rate than proximity data. As this is not handled by the IIO
framework for now, and the sample frequencies of ambient light data are
very low, do add buffer support for them.

Signed-off-by: Mathieu Othacehe <m.othacehe@gmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/Kconfig
drivers/iio/light/vcnl4000.c