diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2021-04-08 19:38:13 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-17 13:49:07 +0100 |
commit | 8e39d4723a00cfc7029e61f7bd9ffa357409f9d2 (patch) | |
tree | 70c6f8988003e0d3f64ebe4e508708c73087027a /COPYING | |
parent | bfc1807acf85a22a17ea22635d4f546c3c53a73f (diff) |
iio: triggered-buffer: simplify devm_iio_triggered_buffer_setup_ext()
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.
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/1617881896-3164-5-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions