iio: vcnl4000: Add event support for VCNL4010/20.
authorMathieu Othacehe <m.othacehe@gmail.com>
Sun, 3 May 2020 09:29:57 +0000 (11:29 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 May 2020 13:51:50 +0000 (14:51 +0100)
commitd35567fcaf68f54129e860acde813400f84ca9b2
tree4eaa16f960648e90b0a416d4a881081f416b4179
parent816956c32d76b7c4fb932f9a5ebaa38ccf4fa62e
iio: vcnl4000: Add event support for VCNL4010/20.

The VCNL4010 and VCNL4020 chips are able to raise interrupts on proximity
threshold events. Add support for threshold rising and falling events for
those two chips.

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