]> git.baikalelectronics.ru Git - kernel.git/commit
staging:iio: Drop {mark,unmark}_in_use callbacks
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 19 Dec 2011 14:23:49 +0000 (15:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Dec 2011 21:38:10 +0000 (13:38 -0800)
commit7a7c886e7ad6304847ad6754c1262ac021c74de3
tree1563ca434350c338176f0c9e6cc4648882ad74d0
parent684ca81e10f7fbeb5d4a4e90d7382109048fda84
staging:iio: Drop {mark,unmark}_in_use callbacks

These callbacks are currently used by the individual buffer implementations to
ensure that the request_update callback is not issued while the buffer is in use.
But the core already provides sufficient measures to prevent this from happening
in the first place. So it is safe to remove them.

There is one functional change due to this patch. Since the buffer is no longer
marked as in use when the chrdev is opened, it is now possible to enable the
buffer while it is opened. This did not work before, because mark_param_change
did fail if the buffer was marked as in use.

Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Documentation/ring.txt
drivers/staging/iio/buffer.h
drivers/staging/iio/iio_core.h
drivers/staging/iio/industrialio-buffer.c
drivers/staging/iio/industrialio-core.c
drivers/staging/iio/kfifo_buf.c
drivers/staging/iio/ring_sw.c