summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/meson_saradc.c
diff options
context:
space:
mode:
authorAlexandru Ardelean <aardelean@deviqon.com>2021-07-20 09:46:42 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-07-24 17:35:05 +0200
commita574e68ff5135d4782260ad38d4b29b8e94e44d6 (patch)
treebae47b4a0b6f5eee878af7bb2da9a16be06810c3 /drivers/iio/adc/meson_saradc.c
parentiio: magn: st_magn: use devm_iio_triggered_buffer_setup() for buffer (diff)
downloadlinux-a574e68ff5135d4782260ad38d4b29b8e94e44d6.tar.xz
linux-a574e68ff5135d4782260ad38d4b29b8e94e44d6.zip
iio: gyro: st_gyro: use devm_iio_triggered_buffer_setup() for buffer
The st_gyro_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_gyro_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_gyro_allocate_ring() as well. Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com> Link: https://lore.kernel.org/r/20210720074642.223293-4-aardelean@deviqon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/meson_saradc.c')
0 files changed, 0 insertions, 0 deletions