staging:iio:events: Use waitqueue lock to protect event queue
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jan 2012 13:59:40 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:05:06 +0000 (10:05 -0800)
commit43ba1100af11f34cc67bdf6b359667cfa851e6a8
treeab8d9da8dc01a5a99f7b460b85fc0d0a94690cf6
parent2c00193fa15dc51566dc7931fe32184c99c6b317
staging:iio:events: Use waitqueue lock to protect event queue

Use the waitqueue lock to protect the event queue instead of a custom mutex.
This has the advantage that we can call the waitqueue operations with the lock
held, which simplifies the code flow a bit.

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