staging:iio:events: Use kfifo for event queue
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 3 Jan 2012 13:59:39 +0000 (14:59 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 18:05:06 +0000 (10:05 -0800)
commit2c00193fa15dc51566dc7931fe32184c99c6b317
tree868cefa58fb8e5f226f470fe852584aa45727387
parent0a769a95334a8819da046f13c2ef8d8b344fc199
staging:iio:events: Use kfifo for event queue

The current IIO event code uses a list to emulate FIFO like behavior.
Just use a kfifo directly instead to implement the event queue. As part of this
patch the maximum of events in the queue is increased from 10 to 16 since kfifo
requires a power of two for the number of FIFO elements.

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