iio: Add resource managed APIs devm_iio_channel_{get,release) in devres
authorLaxman Dewangan <ldewangan@nvidia.com>
Wed, 6 Apr 2016 10:31:08 +0000 (16:01 +0530)
committerJonathan Cameron <jic23@kernel.org>
Tue, 19 Apr 2016 18:58:16 +0000 (19:58 +0100)
Add following APIs in the list of managed resources of IIO:
devm_iio_channel_get()
devm_iio_channel_get_all()
devm_iio_channel_release()
devm_iio_channel_release_all()

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/driver-model/devres.txt

index 73b98dfbcea49a0d97b81583263a8e5944a3e7df..bdc2dfbe6795f015c0a4f9dbb459078103126cd1 100644 (file)
@@ -267,6 +267,10 @@ IIO
   devm_iio_kfifo_free()
   devm_iio_trigger_alloc()
   devm_iio_trigger_free()
+  devm_iio_channel_get()
+  devm_iio_channel_release()
+  devm_iio_channel_get_all()
+  devm_iio_channel_release_all()
 
 IO region
   devm_release_mem_region()