This is an attempt to address the problem of buffering in devices which have different scan frequencies for different channels. The first patch is a minor cleanup of the dummy code, the second one a safeguard against duplicate scan_index channels. The final two patches add a new channel and are RFC. Vlad Dogaru (4): iio: dummy: set scan_index for unbuffered channels iio: ensure scan index is unique at buffer register iio: add valid sample channel iio: illustrate the use of a valid sample channel drivers/iio/industrialio-buffer.c | 28 ++++++++++++++++++++++++ drivers/iio/industrialio-core.c | 1 + drivers/staging/iio/iio_simple_dummy.c | 21 +++++++++++++++--- drivers/staging/iio/iio_simple_dummy_buffer.c | 31 +++++++++++++++++++++++++-- include/linux/iio/types.h | 1 + 5 files changed, 77 insertions(+), 5 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html