[PATCH 0/4] add periodic mode, threshold options and hwmon

Ivan Mikhaylov
2021-04-30T15:16:16Z

Add periodic mode enablement, high/low threshold options. Remove mutex
from vcnl3020_data structure, change mutex_lock/unlock's appropriately on
iio_device_claim/release_direct_mode.

Add hwmon driver as intrusion sensor which provides information about
any triggers within thresholds, works in periodic mode of proximity
sensor.

Ivan Mikhaylov (4):
iio: proximity: vcnl3020: add periodic mode
iio: proximity: vcnl3020: add threshold options
iio: proximity: vncl3020: remove mutex from vcnl3020_data
hwmon: vcnl3020: add hwmon driver for intrusion sensor

drivers/hwmon/Kconfig | 7 +
drivers/hwmon/Makefile | 1 +
drivers/hwmon/vcnl3020-hwmon.c | 57 +++++
drivers/iio/proximity/vcnl3020.c | 335 ++++++++++++++++++++++---
include/linux/iio/proximity/vcnl3020.h | 26 ++
5 files changed, 395 insertions(+), 31 deletions(-)
create mode 100644 drivers/hwmon/vcnl3020-hwmon.c
create mode 100644 include/linux/iio/proximity/vcnl3020.h

--
2.26.3