mbox series

[v7,0/3] iio: acpi_als: Add sotfware trigger support

Message ID 20210317074012.2336454-1-gwendal@chromium.org (mailing list archive)
Headers show
Series iio: acpi_als: Add sotfware trigger support | expand

Message

Gwendal Grignou March 17, 2021, 7:40 a.m. UTC
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 second adds a local
variable in probe routine and the last one adds trigger support.

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

Changes since v7:
  rebase on iio git testing branch.

Gwendal Grignou (3):
  iio: acpi_als: Add timestamp channel
  iio: acpi_als: Add local variable dev in probe
  iio: acpi_als: Add trigger support

 drivers/iio/light/acpi-als.c | 113 +++++++++++++++++++++++------------
 1 file changed, 76 insertions(+), 37 deletions(-)

Comments

Jonathan Cameron March 20, 2021, 5:12 p.m. UTC | #1
On Wed, 17 Mar 2021 00:40:09 -0700
Gwendal Grignou <gwendal@chromium.org> wrote:

> 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 second adds a local
> variable in probe routine and the last one adds trigger support.
> 
> This patch assumes the patch "iio: set default trig->dev.parent" is
> applied.
Applied to the togreg branch of iio.git and pushed out as testing for
the autobuilders to poke at it.

Thanks,

Jonathan

> 
> Changes since v7:
>   rebase on iio git testing branch.
> 
> Gwendal Grignou (3):
>   iio: acpi_als: Add timestamp channel
>   iio: acpi_als: Add local variable dev in probe
>   iio: acpi_als: Add trigger support
> 
>  drivers/iio/light/acpi-als.c | 113 +++++++++++++++++++++++------------
>  1 file changed, 76 insertions(+), 37 deletions(-)
>