aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/driver-model
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-10-29 07:39:00 -0400
committerJonathan Cameron <jic23@kernel.org>2013-11-24 16:07:09 -0500
commit8caa07c0e565a15f49f290ca4c6a3adf968ddd38 (patch)
treef01931c1686fb622b31f3d01cbe77c85830109d6 /Documentation/driver-model
parent2461fc9f3f45828eee23dd5018e7b5576aceec80 (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>
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 fcb34a5697ea..ffeab1dded0a 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -242,6 +242,8 @@ IIO
242 devm_iio_device_free() 242 devm_iio_device_free()
243 devm_iio_trigger_alloc() 243 devm_iio_trigger_alloc()
244 devm_iio_trigger_free() 244 devm_iio_trigger_free()
245 devm_iio_device_register()
246 devm_iio_device_unregister()
245 247
246IO region 248IO region
247 devm_request_region() 249 devm_request_region()