staging:iio:events: Add poll support
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jan 2012 13:59:41 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:05:06 +0000 (10:05 -0800)
commite18045ed75ec682a26a385b0072dcc030fd12a7e
treeb8c95b13d9a9b295d64acba66c38f4952871d889
parent43ba1100af11f34cc67bdf6b359667cfa851e6a8
staging:iio:events: Add poll support

Add poll support to the event queue. This will allow us to check for pending
events in a application's event loop using poll() or similar. Since we already
have support for blocking reads adding poll support as well is trivial.

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