iio: ltr501: Export near level property for proximity sensor
authorNikita Travkin <nikita@trvn.ru>
Thu, 25 Nov 2021 12:56:46 +0000 (17:56 +0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 4 Dec 2021 15:34:18 +0000 (15:34 +0000)
commit4114835810aecec94b4163b8b1086dd953476391
treed7c2bf0ff9d7eaafe404008c4241799bcc12fa4e
parent2cc131ace0d2f47e5d8fcc8a2be12f5e3a20b1f0
iio: ltr501: Export near level property for proximity sensor

Userspace tools like iio-sensor-proxy need to know the proximity level
that should be considered "near". This value is hardware-specific and
can be defined via the devicetree. Allow the driver to export the near
level.

Signed-off-by: Nikita Travkin <nikita@trvn.ru>
Link: https://lore.kernel.org/r/20211125125646.54831-2-nikita@trvn.ru
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/ltr501.c