diff options
author | Mathieu Othacehe <m.othacehe@gmail.com> | 2020-05-03 11:29:59 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-05-03 15:53:57 +0200 |
commit | 8fe78d5261e750205e5dab0681c4d62e4b3dbc28 (patch) | |
tree | ae93bd02c9a2174e9797ecdfd796e2bd44dfeebb /drivers/iio/light/Kconfig | |
parent | iio: vcnl4000: Add sampling frequency support for VCNL4010/20. (diff) | |
download | linux-8fe78d5261e750205e5dab0681c4d62e4b3dbc28.tar.xz linux-8fe78d5261e750205e5dab0681c4d62e4b3dbc28.zip |
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>
Diffstat (limited to 'drivers/iio/light/Kconfig')
-rw-r--r-- | drivers/iio/light/Kconfig | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/light/Kconfig b/drivers/iio/light/Kconfig index b27719cefcf9..182bd18c4bb2 100644 --- a/drivers/iio/light/Kconfig +++ b/drivers/iio/light/Kconfig @@ -516,6 +516,8 @@ config US5182D config VCNL4000 tristate "VCNL4000/4010/4020/4200 combined ALS and proximity sensor" + select IIO_BUFFER + select IIO_TRIGGERED_BUFFER depends on I2C help Say Y here if you want to build a driver for the Vishay VCNL4000, |