]> git.karo-electronics.de Git - linux-beck.git/commit
iio: Set device watermark based on watermark of all attached buffers
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Oct 2015 16:10:24 +0000 (18:10 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 25 Oct 2015 13:41:23 +0000 (13:41 +0000)
commitf0566c0c405de543efb6fb8b8988cc7743d85ea6
tree9db7d4f42bed5f64c68846377c438cd01097220e
parent0d0e53844797200aa026dfbdfe62f90ccff88300
iio: Set device watermark based on watermark of all attached buffers

Currently the watermark of the device is only set based on the watermark
that is set for the user space buffer. This doesn't consider the watermarks
set on any attached in-kernel buffers.

Change this so that the watermark of the device should be the minimum of
the watermarks over all attached buffers.

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