]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit862c4480405ca0e9ca98d9eb473c328d20acc678
tree868cefa58fb8e5f226f470fe852584aa45727387
parentd47e3b258cf630b328dbccee9417de0bd946cd21
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