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. 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 | 104 +++++++++++++++++++++++++---------- 1 file changed, 74 insertions(+), 30 deletions(-) -- 2.29.2.684.gfbc64c5ab5-goog