• L
    iio: Specify supported modes for buffers · 225d59ad
    Lars-Peter Clausen 提交于
    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: NLars-Peter Clausen <lars@metafoo.de>
    Signed-off-by: NJonathan Cameron <jic23@kernel.org>
    225d59ad
kfifo_buf.c 4.7 KB