iio:inkern: Use iio_device_{get,put}
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 4 Jun 2012 08:50:03 +0000 (10:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 04:21:29 +0000 (21:21 -0700)
commit1875ffd218ddafd78f0f8e78198c137cef97fd8a
treeefc440ffd76f489b2079adc92b571ae6f9583f44
parente4e8b7765867e8f4705bcc18b8930edbe0e4ef3c
iio:inkern: Use iio_device_{get,put}

Use iio_device_get and iio_device_put instead of open-coding it.

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