iio: vcnl4000: Export near level property for proximity sensor
authorGuido Günther <agx@sigxcpu.org>
Sun, 5 Apr 2020 13:50:31 +0000 (15:50 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:56:43 +0000 (16:56 +0100)
commitf5a98e1fca15cbf79f50098ea30e84ce33da2fd6
tree9896170534ba540277a9f0be9bf1da2182efad9e
parent138986062b50e7e24404e279d2e2c79c0291dac3
iio: vcnl4000: Export near level property for proximity sensor

When an object can be considered close to the sensor is hardware
dependent. Allowing to configure the property via device tree
allows to configure this device specific value.

This is useful for e.g. iio-sensor-proxy to indicate to userspace
if an object is close to the sensor.

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/vcnl4000.c