• Lars-Peter Clausen's avatar
    iio: Specify supported modes for buffers · 225d59ad
    Lars-Peter Clausen authored
    For each buffer type specify the supported device modes for this buffer.
    This allows us for devices which support multiple different operating modes
    to pick the correct operating mode based on the modes supported by the
    attached buffers.
    
    It also prevents that buffers with conflicting modes are attached
    to a device at the same time or that a buffer with a non-supported mode is
    attached to a device (e.g. in-kernel callback buffer to a device only
    supporting hardware mode).
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    225d59ad
buffer_cb.c 3.12 KB