iio:trigger: add resource managed (un)register
authorGregor Boirie <gregor.boirie@parrot.com>
Fri, 2 Sep 2016 18:47:54 +0000 (20:47 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 4 Sep 2016 14:42:37 +0000 (15:42 +0100)
commit9083325f1197a6956db17809d74dbe3578dc1005
tree564e82838791d03d37e79ee737aaae5e36a656aa
parent2535cc7ae02bc1e4dc6b6d3771ba8d18cd824e10
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>
Documentation/driver-model/devres.txt
drivers/iio/industrialio-trigger.c
include/linux/iio/trigger.h