iio: trigger: implement devm_iio_trigger_alloc/devm_iio_triger_free
authorJacek Anaszewski <j.anaszewski@samsung.com>
Fri, 16 Aug 2013 13:11:00 +0000 (14:11 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 17 Aug 2013 18:34:52 +0000 (19:34 +0100)
commitd536321df392ee0db6a5e92d98f0303020315f40
treec3616492e72328c7a76ab22445d61f9bb167628c
parent1696f36482e7063051a1dad86a54be83fd847f4f
iio: trigger: implement devm_iio_trigger_alloc/devm_iio_triger_free

Add a resource managed devm_iio_trigger_alloc()/devm_iio_triger_free()
to automatically clean up triggers allocated by IIO drivers, thus
leading to simplified IIO drivers code.

Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>
Signed-off-by: Kyunmin Park <kyungmin.park@samsung.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/driver-model/devres.txt
drivers/iio/industrialio-trigger.c
include/linux/iio/iio.h