summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-29 11:39:00 +0000
committerLaxman Dewangan <ldewangan@nvidia.com>2014-02-16 08:23:48 -0800
commit58e25cc2a6ef7be6e587d6dbbaae27c0e34984d7 (patch)
treebf91e22ef7d961530ab3c8cef647256ed7c955c6 /Documentation
parent4efcbcea64decdc50425d5e938c8c682fbdd4830 (diff)
iio: core: Implement devm_iio_device_{register,unregister}
Add device managed devm_iio_device_{register,unregister}() to automatically unregister IIO drivers thus leading to simplified IIO driver code. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Lars-Peter Clausen <lars@metafoo.de> Tested-by: Lars-Peter Clausen <lars@metafoo.de> Reviewed-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org> (cherry picked from commit 8caa07c0e565a15f49f290ca4c6a3adf968ddd38) Conflicts: Documentation/driver-model/devres.txt Change-Id: I3ccfa11be374b150b3bb6a45defcf6fb5955a258 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/368084
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/driver-model/devres.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index c5998313b8ae..d6baf9a42762 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -237,6 +237,14 @@ MEM
devm_kzalloc()
devm_kfree()
+IIO
+ devm_iio_device_alloc()
+ devm_iio_device_free()
+ devm_iio_trigger_alloc()
+ devm_iio_trigger_free()
+ devm_iio_device_register()
+ devm_iio_device_unregister()
+
IO region
devm_request_region()
devm_request_mem_region()