summaryrefslogtreecommitdiffstats
path: root/Documentation/driver-model
diff options
context:
space:
mode:
authorJacek Anaszewski <j.anaszewski@samsung.com>2013-08-16 14:11:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-08-17 19:34:52 +0100
commitd536321df392ee0db6a5e92d98f0303020315f40 (patch)
treec3616492e72328c7a76ab22445d61f9bb167628c /Documentation/driver-model
parent1696f36482e7063051a1dad86a54be83fd847f4f (diff)
downloadop-kernel-dev-d536321df392ee0db6a5e92d98f0303020315f40.zip
op-kernel-dev-d536321df392ee0db6a5e92d98f0303020315f40.tar.gz
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>
Diffstat (limited to 'Documentation/driver-model')
-rw-r--r--Documentation/driver-model/devres.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index 1d32332..fb57d85 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -240,6 +240,8 @@ MEM
IIO
devm_iio_device_alloc()
devm_iio_device_free()
+ devm_iio_trigger_alloc()
+ devm_iio_trigger_free()
IO region
devm_request_region()
OpenPOWER on IntegriCloud