iio:buffer: Simplify iio_buffer_is_active()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 15 Sep 2013 15:31:00 +0000 (16:31 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 15 Sep 2013 16:35:31 +0000 (17:35 +0100)
We can skip having to loop through all the device's buffers to see if a certain
buffer is active, if we let the buffer's list head point to itself when the
buffer is inactive.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c

Simple merge