]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdd7a4254536ba3856c5245e7d69091a72846aecf
tree9896170534ba540277a9f0be9bf1da2182efad9e
parent3765a2832ad624d5c0964ce2c25dd82bffc157ec
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