linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: stk3310: Export near level property for proximity sensor
@ 2022-04-20 11:25 Arnaud Ferraris
  2022-04-20 11:25 ` [PATCH v2 1/2] dt-bindings: iio: light: stk33xx: Add proximity-near-level Arnaud Ferraris
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Arnaud Ferraris @ 2022-04-20 11:25 UTC (permalink / raw)
  To: Jonathan Cameron, Lars-Peter Clausen, Rob Herring, Krzysztof Kozlowski
  Cc: linux-iio, devicetree, linux-kernel, kernel

Userspace tools like iio-sensor-proxy need to be instructed the value from
which they should consider an object is "near". This threshold can be
exported through the sysfs ABI based on the "proximity-near-level"
device-tree property.

This patchset implements this property for the stk3310 driver and adds the
necessary bits to export its value to userspace. It is based on similar
changes applied to the vcnl4000 and ltr501 drivers.

Changes in v2:
  - drop zero-assignment as the variable won't be modified if DT property
    is missing

Arnaud Ferraris (2):
  dt-bindings: iio: light: stk33xx: Add proximity-near-level
  iio: stk3310: Export near level property for proximity sensor

 .../bindings/iio/light/stk33xx.yaml           |  6 +++++
 drivers/iio/light/stk3310.c                   | 25 +++++++++++++++++++
 2 files changed, 31 insertions(+)

-- 
2.35.1

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

end of thread, other threads:[~2022-04-24 16:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20 11:25 [PATCH v2 0/2] iio: stk3310: Export near level property for proximity sensor Arnaud Ferraris
2022-04-20 11:25 ` [PATCH v2 1/2] dt-bindings: iio: light: stk33xx: Add proximity-near-level Arnaud Ferraris
2022-04-21  7:30   ` Krzysztof Kozlowski
2022-04-20 11:25 ` [PATCH v2 2/2] iio: stk3310: Export near level property for proximity sensor Arnaud Ferraris
2022-04-24 16:57 ` [PATCH v2 0/2] " Jonathan Cameron

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).