linux/drivers/iio/pressure
Alexandru Ardelean 674db1e921 iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer
The st_press_allocate_ring() function calls iio_triggered_buffer_setup() to
allocate a triggered buffer.

But the same can be done with devm_iio_triggered_buffer_setup() and then
the st_press_common_remove() no longer needs to manually deallocate it.

We know that the parent of the IIO device is used to manage other instances
of the devm unwind, so it can be used in the st_press_allocate_ring() as
well.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Link: https://lore.kernel.org/r/20210720074642.223293-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2021-07-24 16:35:05 +01:00
..
abp060mg.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bmp280-core.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
bmp280-i2c.c iio: pressure: bmp280: Allow device to be enumerated from ACPI 2019-12-29 15:20:10 +00:00
bmp280-regmap.c iio: pressure: bmp280: remove unneeded semicolon 2020-11-01 14:58:54 +00:00
bmp280-spi.c iio: pressure: bmp280: use devm action and remove labels from probe 2019-10-22 11:10:23 +01:00
bmp280.h iio: pressure: bmp280: use devm action and remove labels from probe 2019-10-22 11:10:23 +01:00
cros_ec_baro.c iio: cros: unify hw fifo attributes without API changes 2021-03-25 19:13:52 +00:00
dlhl60d.c Replace HTTP links with HTTPS ones: drivers/iio 2020-07-13 15:05:59 +01:00
dps310.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hid-sensor-press.c iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
hp03.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
hp206c.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
icp10100.c iio: pressure: icp10100: Balance runtime pm + use pm_runtime_resume_and_get() 2021-06-16 14:53:13 +01:00
Kconfig iio: hid-sensors: select IIO_TRIGGERED_BUFFER under HID_SENSOR_IIO_TRIGGER 2021-05-10 14:01:48 +01:00
Makefile iio: pressure: icp10100: add driver for InvenSense ICP-101xx 2020-03-08 17:28:52 +00:00
mpl115_i2c.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl115_spi.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl115.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
mpl115.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 330 2019-06-05 17:37:06 +02:00
mpl3115.c iio:pressure:mpl3115: Force alignment of buffer 2020-12-03 19:40:28 +00:00
ms5611_core.c Linux 5.8-rc6 2020-07-20 09:37:31 +02:00
ms5611_i2c.c iio:pressure:ms5611: Drop of_match_ptr and CONFIG_OF protections 2020-09-21 18:41:29 +01:00
ms5611_spi.c iio:pressure:ms5611: Drop of_match_ptr and CONFIG_OF protections 2020-09-21 18:41:29 +01:00
ms5611.h iio: pressure: ms5611: switch to SPDX identifier 2018-09-08 15:04:02 +01:00
ms5637.c iio:pressure:ms5637: add ms5803 support 2021-01-22 08:52:07 +00:00
st_pressure_buffer.c iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_pressure_core.c iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
st_pressure_i2c.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_pressure_spi.c iio: st-sensors: Remove some unused includes and add some that should be there 2021-07-24 15:59:00 +01:00
st_pressure.h iio: pressure: st_pressure: use devm_iio_triggered_buffer_setup() for buffer 2021-07-24 16:35:05 +01:00
t5403.c iio: remove explicit IIO device parent assignment 2020-06-14 11:49:59 +01:00
zpa2326_i2c.c iio:pressure:zpa2326: Drop of_match_ptr protection 2020-09-21 18:41:30 +01:00
zpa2326_spi.c iio:pressure:zpa2326: Drop of_match_ptr protection 2020-09-21 18:41:30 +01:00
zpa2326.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
zpa2326.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00