]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: core: Simplify IIO core managed APIs
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Feb 2026 13:25:19 +0000 (14:25 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 23 Feb 2026 21:00:47 +0000 (21:00 +0000)
commit4d9fccb3e98712df571936ec3d31338e3b906690
treee95a6a918c894f5e1e721acad58551576fc0c5e7
parentb40be056eefe458698d75ff2b78ed853efdf5e8a
iio: core: Simplify IIO core managed APIs

Use devm_add_action_or_reset() instead of devres_alloc() and
devres_add(), which works the same. This will simplify the
code. There is no functional changes.

While at it, inline devm_iio_kfifo_allocate() into its only user.

Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/kfifo_buf.c
drivers/iio/industrialio-trigger.c