IIO: consumer: allow to set buffer sizes
authorArnaud Pouliquen <arnaud.pouliquen@st.com>
Wed, 10 Jan 2018 10:13:13 +0000 (11:13 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jan 2018 10:30:14 +0000 (10:30 +0000)
commit16cbca06fa8288a4f58426fc898b141e12ee8008
tree74b875e2df0adae7b84afae5531fedaa7253029b
parenteca949800d2dd761bc0c73b793e4e9ad4a997469
IIO: consumer: allow to set buffer sizes

Add iio consumer API to set buffer size and watermark according
to sysfs API.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/iio/buffer/industrialio-buffer-cb.c
include/linux/iio/consumer.h