diff options
| author | 2021-04-08 19:38:16 +0800 | |
|---|---|---|
| committer | 2021-05-17 13:49:07 +0100 | |
| commit | 7349e8a36caa11c07e71b05f42c384bc540446c8 (patch) | |
| tree | d09bd1f578f2f11dba9949b40bf8da380111dd8c /Documentation | |
| parent | iio: trigger: simplify __devm_iio_trigger_register (diff) | |
iio: inkern: simplify some devm functions
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-8-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions
