linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iio: acpi_als: Add sotfware trigger support
@ 2020-12-10 20:49 Gwendal Grignou
  2020-12-10 20:49 ` [PATCH v2 1/2] iio: acpi_als: Add timestamp channel Gwendal Grignou
  2020-12-10 20:49 ` [PATCH v2 2/2] iio: acpi_als: Add trigger support Gwendal Grignou
  0 siblings, 2 replies; 3+ messages in thread
From: Gwendal Grignou @ 2020-12-10 20:49 UTC (permalink / raw)
  To: gabriele.mzt, jic23, lars, andy.shevchenko; +Cc: linux-iio, Gwendal Grignou

Some devices (chromebooks) present the ACPI ALS device but do not have
ability to notify when a new sample is present.
Add support for software trigger (hrtimer/sysfs-trigger) to allow
retrieving samples using iio buffers.

The first path fully adds timestamp channel, the next one adds trigger
support.

This patch assumes the patch "iio: set default trig->dev.parent" is
applied.

Gwendal Grignou (2):
  iio: acpi_als: Add timestamp channel
  iio: acpi_als: Add trigger support

 drivers/iio/light/acpi-als.c | 103 ++++++++++++++++++++++++-----------
 1 file changed, 72 insertions(+), 31 deletions(-)

-- 
2.29.2.576.ga3fc446d84-goog


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

end of thread, other threads:[~2020-12-10 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-10 20:49 [PATCH v2 0/2] iio: acpi_als: Add sotfware trigger support Gwendal Grignou
2020-12-10 20:49 ` [PATCH v2 1/2] iio: acpi_als: Add timestamp channel Gwendal Grignou
2020-12-10 20:49 ` [PATCH v2 2/2] iio: acpi_als: Add trigger support Gwendal Grignou

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