commit | 9083325f1197a6956db17809d74dbe3578dc1005 | [log] [tgz] |
---|---|---|
author | Gregor Boirie <gregor.boirie@parrot.com> | Fri Sep 02 20:47:54 2016 +0200 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Sep 04 15:42:37 2016 +0100 |
tree | 564e82838791d03d37e79ee737aaae5e36a656aa | |
parent | 2535cc7ae02bc1e4dc6b6d3771ba8d18cd824e10 [diff] |
iio:trigger: add resource managed (un)register Add resource managed devm_iio_trigger_register() and devm_iio_triger_unregister() to automatically clean up registered triggers allocated by IIO drivers, thus leading to simplified IIO drivers code. Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>