diff options
author | Yicong Yang <yangyicong@hisilicon.com> | 2021-04-08 19:38:15 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-05-17 13:49:07 +0100 |
commit | 171a70afbde9a3e7499d7d3efde8ca49f7e5f00d (patch) | |
tree | fbb584fbfe33027b81f1af1825b4dfc0e6e57fcc /drivers/iio/inkern.c | |
parent | cf5724e91515e8b016019b148c99bdf7c58f3ab7 (diff) | |
download | linux-171a70afbde9a3e7499d7d3efde8ca49f7e5f00d.tar.gz |
iio: trigger: simplify __devm_iio_trigger_register
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-7-git-send-email-yangyicong@hisilicon.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/inkern.c')
0 files changed, 0 insertions, 0 deletions