linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] iio: vcnl4000: Export near level property for proximity sensor
@ 2020-02-17 13:44 Guido Günther
  2020-02-17 13:44 ` [PATCH 1/2] " Guido Günther
  2020-02-17 13:44 ` [PATCH 2/2] dt-bindings: iio: light: vcnl4000: Add near-level Guido Günther
  0 siblings, 2 replies; 5+ messages in thread
From: Guido Günther @ 2020-02-17 13:44 UTC (permalink / raw)
  To: Tomas Novotny, Jonathan Cameron, Hartmut Knaack,
	Lars-Peter Clausen, Peter Meerwald-Stadler,
	Angus Ainslie (Purism),
	Guido Günther, Marco Felsch, Thomas Gleixner, linux-iio,
	linux-kernel

If an object can be considered close to the device that has the proximity
sensor built in is hardware dependent. Allowing to configure the property via
device tree allows to export this device specific value to userspace via
ext_info. This is useful for e.g. iio-sensor-proxy.

This came up when adding proximity support to iio-sensor-proxy [1], [2], it is
not meant as a vcnl4000 thing but rather as something useful for other proximity
sensors too in the future.

I've not converted the vcnl4000 binding docs to yaml but can do so as part of
this series in a v2 if the approach makes sense.

[1]: https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/merge_requests/298
[2]: https://lore.kernel.org/linux-iio/20200210154153.GA26903@bogon.m.sigxcpu.org/

Guido Günther (2):
  iio: vcnl4000: Export near level property for proximity sensor
  dt-bindings: iio: light: vcnl4000: Add near-level

 .../bindings/iio/light/vcnl4000.txt           |  6 +++++
 drivers/iio/light/vcnl4000.c                  | 26 +++++++++++++++++++
 2 files changed, 32 insertions(+)

-- 
2.23.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-03-16 17:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-17 13:44 [PATCH 0/2] iio: vcnl4000: Export near level property for proximity sensor Guido Günther
2020-02-17 13:44 ` [PATCH 1/2] " Guido Günther
2020-02-21 12:05   ` Jonathan Cameron
2020-03-16 17:47     ` Guido Günther
2020-02-17 13:44 ` [PATCH 2/2] dt-bindings: iio: light: vcnl4000: Add near-level Guido Günther

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).