diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-15 19:31:00 +0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-15 20:35:31 +0400 |
commit | 705ee2c98a37130fd0aa914dc55b74a9174a6ff0 (patch) | |
tree | 995c7b810abd3915aef7f6a53b52b7364f117df1 /include/linux/iio | |
parent | a646fbf0fd11256c59ea6233eb243516086dbf15 (diff) | |
download | linux-705ee2c98a37130fd0aa914dc55b74a9174a6ff0.tar.xz |
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 <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/iio')
0 files changed, 0 insertions, 0 deletions