iio: Wakeup poll and blocking reads when the device is unregistered
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 4 Oct 2013 11:07:00 +0000 (12:07 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Oct 2013 11:05:36 +0000 (12:05 +0100)
commitd2f0a48f36aea38e0a5c4b439d5d9c96aecabad9
tree2bc65afab0101f23f9e31e44500b858444c6d100
parentf18e7a068a0a31250cdb251810f8f6224931c3f5
iio: Wakeup poll and blocking reads when the device is unregistered

Once the device has been unregistered there won't be any new data no matter how
long a userspace application waits, so we might as well wake them up and let
them know.

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
drivers/iio/industrialio-event.c