• Lars-Peter Clausen's avatar
    staging:iio: Drop {mark,unmark}_in_use callbacks · 79335140
    Lars-Peter Clausen authored
    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: default avatarJonathan Cameron <jic23@kernel.org>
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    79335140
ring_sw.c 10.5 KB