iio: Stop sampling when the device is removed
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:36:30 +0000 (12:36 +0100)
commita87c82e454f184a9473f8cdfd4d304205f585f65
tree5f158830b28d740e6782dac2683fd46cde7b23fb
parentd66e0452bf6b0d98cd1a478918c92f2baffcb413
iio: Stop sampling when the device is removed

Make sure to stop sampling when the device is removed, otherwise it will
continue to sample forever.

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