linux/drivers/iio/humidity
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
..
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
am2315.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
dht11.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
hdc100x.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
hid-sensor-humidity.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hts221.h iio: humidity: hts221: remove usage of iio_priv_to_dev() 2020-06-14 11:49:13 +01:00
hts221_buffer.c iio: Move attach/detach of the poll func to the core 2020-06-20 17:34:44 +01:00
hts221_core.c iio: remove left-over parent assignments 2020-06-14 11:50:04 +01:00
hts221_i2c.c iio: humidity: hts221: Drop unneeded casting when print error code 2020-03-21 10:27:15 +00:00
hts221_spi.c iio: humidity: hts221: Drop unneeded casting when print error code 2020-03-21 10:27:15 +00:00
htu21.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
si7005.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
si7020.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00