]> git.baikalelectronics.ru Git - kernel.git/commit
iio: Add iio_device_get()
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 4 Jun 2012 08:50:02 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:21:29 +0000 (21:21 -0700)
commit67dbd989294c341d4a9403f49698b1c8ea08f86c
treed908c7a41b1b0f6917007eb4e4621a041905301a
parent1dc16ff1b939a1c8cdc0c4f1e5b47401de9db4fb
iio: Add iio_device_get()

This patch add the iio_device_get() function, which increases the reference
count of a iio device. The matching function to decrease the reference count -
iio_device_put() - already exists.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/iio/iio.h