iio: fix: Keep a reference to the IIO device for open file descriptors
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 18 Sep 2013 20:02:00 +0000 (21:02 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 21 Sep 2013 11:45:07 +0000 (12:45 +0100)
commitcadc2125e140f7122bf1b59d42486cfc778c7286
tree9f4bffd9518d76850a981c877599cc1339de2b0e
parenta87c82e454f184a9473f8cdfd4d304205f585f65
iio: fix: Keep a reference to the IIO device for open file descriptors

Make sure that the IIO device is not freed while we still have file descriptors
for it.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c
drivers/iio/industrialio-event.c