]> git.baikalelectronics.ru Git - kernel.git/commit
iio:buffer: Ignore noop requests for iio_update_buffers()
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 4 Oct 2013 11:07:00 +0000 (12:07 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 12 Oct 2013 12:06:31 +0000 (13:06 +0100)
commitb87bd5889d8761bcadd24b70f3e90c59d422db93
tree9ed0d4b5d28572ad1178eaa15d7528286883cc28
parentae51c42adadb7c2701fb2dd26b03993a505763f1
iio:buffer: Ignore noop requests for iio_update_buffers()

Since the kernel now disables all buffers when a device is unregistered it might
happen that a in-kernel consumer tries to disable that buffer again. So ignore
requests where the buffer already is in the desired state.

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