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)
commit7933514043d42e69663a5123a53fab50eb0b4aba
tree1563ca434350c338176f0c9e6cc4648882ad74d0
parent869871b58c7f7c26ccf7a89cbe599e9b963b8e69
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
This page took 0.030645 seconds and 5 git commands to generate.