linux/drivers/iio/trigger
Gwendal Grignou 995071d36b iio: set default trig->dev.parent
When allocated with [devm_]iio_trigger_alloc(), set trig device parent to
the device the trigger is allocated for by default.

It can always be reassigned in the probe routine.

Change iio_trigger_alloc() API to add the device pointer to be coherent
with devm_iio_trigger_alloc, using similar interface to
iio_device_alloc().

Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210309193620.2176163-2-gwendal@chromium.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-03-25 19:13:50 +00:00
..
iio-trig-hrtimer.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-interrupt.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-loop.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
iio-trig-sysfs.c iio: set default trig->dev.parent 2021-03-25 19:13:50 +00:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
stm32-lptimer-trigger.c iio: stm32: Adopt SPDX identifier 2018-01-08 16:03:41 +01:00
stm32-timer-trigger.c iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00