From: Lars-Peter Clausen Date: Sun, 15 Sep 2013 15:31:00 +0000 (+0100) Subject: iio:buffer: Simplify iio_buffer_is_active() X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~694^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705ee2c98a37130fd0aa914dc55b74a9174a6ff0;p=pandora-kernel.git iio:buffer: Simplify iio_buffer_is_active() 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 Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed