aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlexandru Ardelean <[email protected]>2021-07-20 10:46:41 +0300
committerJonathan Cameron <[email protected]>2021-07-24 16:35:05 +0100
commit899f6791469f658d395199c33997391cdd53fa5e (patch)
tree105ab5747f5f94cb15e83fb1d2209bfb7519bd18 /include/linux
parenta442673b40f22be1d7ce7bfb9626461638a638da (diff)
iio: magn: st_magn: use devm_iio_triggered_buffer_setup() for buffer
The st_magn_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_magn_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_magn_allocate_ring() as well. This change also removes some omitted st_magn_{probe,remove}_trigger() inline hooks. Signed-off-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions