OpenCloudOS-Kernel/drivers/iio
Lars-Peter Clausen f11d59d87b iio: Move attach/detach of the poll func to the core
All devices using a triggered buffer need to attach and detach the trigger
to the device in order to properly work. Instead of doing this in each and
every driver by hand move this into the core.

At this point in time, all drivers should have been resolved to
attach/detach the poll-function in the same order.

This patch removes all explicit calls of iio_triggered_buffer_postenable()
& iio_triggered_buffer_predisable() in all drivers, since the core handles
now the pollfunc attach/detach.

The more peculiar change is for the 'at91-sama5d2_adc' driver, since it's
not immediately obvious that removing the hooks doesn't break anything.
Eugen was able to test on at91-sama5d2-adc driver, sama5d2-xplained board.
All seems to be fine.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Tested-by: Eugen Hristev <eugen.hristev@microchip.com> #for at91-sama5d2-adc
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2020-06-20 17:34:44 +01:00
..
accel iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
adc iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
afe iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
amplifiers iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
buffer iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
chemical iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
common iio: cros_ec: fix spelling mistake 2020-06-14 14:27:59 +01:00
dac iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
dummy iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
frequency iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
gyro iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
health iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
humidity iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
imu iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
light iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
magnetometer iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
multiplexer iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
orientation iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
position iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
potentiometer iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
potentiostat iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
pressure iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
proximity iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
resolver iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
temperature iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
trigger iio: Remove superfluous of_node assignments 2020-06-14 14:20:08 +01:00
Kconfig iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
Makefile iio: position: Add support for Azoteq IQS624/625 angle sensors 2020-03-27 08:25:59 +00:00
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00
iio_core.h iio: buffer: rename 'read_first_n' callback to 'read' 2019-12-29 15:20:09 +00:00
iio_core_trigger.h iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
industrialio-buffer.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
industrialio-configfs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-core.c iio: core: pass parent device as parameter during allocation 2020-06-14 11:49:56 +01:00
industrialio-event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-sw-device.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-sw-trigger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-trigger.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
industrialio-triggered-event.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
inkern.c iio: inkern: drop devm_iio_channel_release{_all} API calls 2020-04-19 16:56:37 +01:00