]> git.kernelconcepts.de Git - karo-tx-linux.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)
commite4e8b7765867e8f4705bcc18b8930edbe0e4ef3c
treed908c7a41b1b0f6917007eb4e4621a041905301a
parent44dd5b02530a5aaea16c1a0a9eea377407445b4a
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